DevForce Help Reference
WPFTraceViewer Class
Members 


A window that provides a real-time display surface for any trace messages from a DevForce application. WPFTraceViewer
Syntax
Remarks
Any messages written to the LogFile specified in the IdeaBlade Configuration file will also be displayed here. Note that messages sent to the log before this window is opened will not be shown.

The WPFTraceViewer is used by the DevForce Trace Viewer utility, but may also be used by developers for their own applications. When using the WPFTraceViewer directly, construct an instance of the window and provide either:

1) No arguments if you want to view tracing messages produced from within your (client) application. WPFTraceViewer tv = new WPFTraceViewer(); tv.Show();

2) A URL for the "trace publisher" used by the BOS. This URL will typically be something like "net.tcp://yourservername:9922/TracePublisher" unless you have overridden defaults in the logging element of the IdeaBlade configuration. Use this option to view tracing messages from the BOS or other application instance, not from your client application. string url = "net.tcp://myBOSserver:9922/TracePublisher"; WPFTraceViewer tv = new WPFTraceViewer(url); tv.Show();

Do not use the WPFTraceViewer from a console application. As a Windows application the trace viewer requires a message pump.

In order to use the WPFTraceViewer directly from you application you will need to add references to the following assemblies: WPFTraceViewer.exe, PresentationCore, PresentationFramework and WindowsBase. Also be sure to add a Using (Imports in Visual Basic) statement for the "IdeaBlade.DevTools.WPFTraceViewer" namespace.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ContentControl
                        System.Windows.Window
                           IdeaBlade.DevTools.WPFTraceViewer.WPFTraceViewer

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WPFTraceViewer Members
IdeaBlade.DevTools.WPFTraceViewer Namespace
TraceFns Class

Send Feedback