WPFTraceViewer Assembly > IdeaBlade.DevTools.WPFTraceViewer Namespace : WPFTraceViewer Class |
'Declaration
Public Class WPFTraceViewer Inherits System.Windows.Window Implements System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.IAnimatable
'Usage
Dim instance As WPFTraceViewer
public class WPFTraceViewer : System.Windows.Window, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.IAnimatable
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.
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
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