C# 클래스 WinRTXamlToolkit.Debugging.VisualTreeDebugger

The class contains an BreakOnLoaded property that allows to debug a visual tree from the control it was applied to up to the visual tree root.
Just put a breakpoint in ControlLoaded() and set VisualTreeDebugger.BreakOnLoaded="True" on any FrameworkElement/Control. Set BreakOnLoaded if you want to put the breakpoint yourself. DebugVisualTree method has a local path variable that contains a list of all elements from the visual tree root up to the debugged control. Debug Output window contains common visual tree layout properties helpful in debugging layout issues.
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 프로퍼티들

프로퍼티 타입 설명
BreakDelayProperty DependencyProperty
BreakOnLayoutUpdatedProperty DependencyProperty
BreakOnLoadedProperty DependencyProperty
BreakOnTapProperty DependencyProperty
TraceOnLayoutUpdatedProperty DependencyProperty
TraceOnLoadedProperty DependencyProperty
TraceOnTapProperty DependencyProperty

공개 메소드들

메소드 설명
DebugVisualTree ( DependencyObject startElement, bool breakInDebugger = true ) : void

Debugs the visual tree.

GetBreakDelay ( DependencyObject d ) : double

Gets the BreakDelay property. This dependency property indicates the delay in seconds to wait after the trigger is fired before breaking in debugger.

GetBreakOnLayoutUpdated ( DependencyObject d ) : bool

Gets the BreakOnLayoutUpdated property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set has its layout updated.

GetBreakOnLoaded ( DependencyObject d ) : bool

Gets the BreakOnLoaded property. This dependency property indicates whether the debugger should BreakOnLoaded when control is loaded.

GetBreakOnTap ( DependencyObject d ) : bool

Gets the BreakOnTap property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set is tapped.

GetTraceOnLayoutUpdated ( DependencyObject d ) : bool

Gets the TraceOnLayoutUpdated property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set has its layout updated.

GetTraceOnLoaded ( DependencyObject d ) : bool

Gets the TraceOnLoaded property. This dependency property indicates whether the debugger should TraceOnLoaded when control is loaded.

GetTraceOnTap ( DependencyObject d ) : bool

Gets the TraceOnTap property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set is tapped.

SetBreakDelay ( DependencyObject d, double value ) : void

Sets the BreakDelay property. This dependency property indicates the delay in seconds to wait after the trigger is fired before breaking in debugger.

SetBreakOnLayoutUpdated ( DependencyObject d, bool value ) : void

Sets the BreakOnLayoutUpdated property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set has its layout updated.

SetBreakOnLoaded ( DependencyObject d, bool value ) : void

Sets the BreakOnLoaded property. This dependency property indicates whether the debugger should BreakOnLoaded when control is loaded.

SetBreakOnTap ( DependencyObject d, bool value ) : void

Sets the BreakOnTap property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set is tapped.

SetTraceOnLayoutUpdated ( DependencyObject d, bool value ) : void

Sets the TraceOnLayoutUpdated property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set has its layout updated.

SetTraceOnLoaded ( DependencyObject d, bool value ) : void

Sets the TraceOnLoaded property. This dependency property indicates whether the debugger should TraceOnLoaded when control is loaded.

SetTraceOnTap ( DependencyObject d, bool value ) : void

Sets the TraceOnTap property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set is tapped.

비공개 메소드들

메소드 설명
BreakOnControlLayoutUpdated ( object sender, object e ) : void

Called when the control's layout updates.

BreakOnControlLoaded ( object sender, RoutedEventArgs e ) : void

Called when the control gets loaded.

BreakOnControlTapped ( object sender, GestureEventArgs args ) : void
BreakOnControlTapped ( object sender, TappedRoutedEventArgs args ) : void
BrushToString ( Brush brush ) : string

Brushes to string.

OnBreakOnLayoutUpdatedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the BreakOnLayoutUpdated property.

OnBreakOnLoadedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Called when [break on loaded changed].

OnBreakOnTapChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the BreakOnTap property.

OnTraceOnLayoutUpdatedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the TraceOnLayoutUpdated property.

OnTraceOnLoadedChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Called when [Trace on loaded changed].

OnTraceOnTapChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the TraceOnTap property.

TraceDependencyObject ( DependencyObject dob, int i ) : void

Traces the dependency object.

TraceOnControlLayoutUpdated ( object sender, object e ) : void

Called when the control's layout updates.

TraceOnControlLoaded ( object sender, RoutedEventArgs e ) : void

Called when the control gets loaded.

TraceOnControlTapped ( object sender, GestureEventArgs e ) : void

Called when the control gets tapped or clicked.

TraceOnControlTapped ( object sender, TappedRoutedEventArgs e ) : void

메소드 상세

DebugVisualTree() 공개 정적인 메소드

Debugs the visual tree.
public static DebugVisualTree ( DependencyObject startElement, bool breakInDebugger = true ) : void
startElement DependencyObject The start element.
breakInDebugger bool if set to true the debugger will break execution.
리턴 void

GetBreakDelay() 공개 정적인 메소드

Gets the BreakDelay property. This dependency property indicates the delay in seconds to wait after the trigger is fired before breaking in debugger.
public static GetBreakDelay ( DependencyObject d ) : double
d DependencyObject The dependency object.
리턴 double

GetBreakOnLayoutUpdated() 공개 정적인 메소드

Gets the BreakOnLayoutUpdated property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set has its layout updated.
public static GetBreakOnLayoutUpdated ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

GetBreakOnLoaded() 공개 정적인 메소드

Gets the BreakOnLoaded property. This dependency property indicates whether the debugger should BreakOnLoaded when control is loaded.
public static GetBreakOnLoaded ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

GetBreakOnTap() 공개 정적인 메소드

Gets the BreakOnTap property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set is tapped.
public static GetBreakOnTap ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

GetTraceOnLayoutUpdated() 공개 정적인 메소드

Gets the TraceOnLayoutUpdated property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set has its layout updated.
public static GetTraceOnLayoutUpdated ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

GetTraceOnLoaded() 공개 정적인 메소드

Gets the TraceOnLoaded property. This dependency property indicates whether the debugger should TraceOnLoaded when control is loaded.
public static GetTraceOnLoaded ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

GetTraceOnTap() 공개 정적인 메소드

Gets the TraceOnTap property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set is tapped.
public static GetTraceOnTap ( DependencyObject d ) : bool
d DependencyObject /// The DependencyObject. ///
리턴 bool

SetBreakDelay() 공개 정적인 메소드

Sets the BreakDelay property. This dependency property indicates the delay in seconds to wait after the trigger is fired before breaking in debugger.
public static SetBreakDelay ( DependencyObject d, double value ) : void
d DependencyObject The dependency object.
value double The value.
리턴 void

SetBreakOnLayoutUpdated() 공개 정적인 메소드

Sets the BreakOnLayoutUpdated property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set has its layout updated.
public static SetBreakOnLayoutUpdated ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool if set to true /// [value]. ///
리턴 void

SetBreakOnLoaded() 공개 정적인 메소드

Sets the BreakOnLoaded property. This dependency property indicates whether the debugger should BreakOnLoaded when control is loaded.
public static SetBreakOnLoaded ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool /// If set to true the attached debugger will break when the control /// loads. ///
리턴 void

SetBreakOnTap() 공개 정적인 메소드

Sets the BreakOnTap property. This dependency property indicates whether the attached debugger should break when the FrameworkElement on which this property is set is tapped.
public static SetBreakOnTap ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool if set to true /// [value]. ///
리턴 void

SetTraceOnLayoutUpdated() 공개 정적인 메소드

Sets the TraceOnLayoutUpdated property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set has its layout updated.
public static SetTraceOnLayoutUpdated ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool if set to true /// [value]. ///
리턴 void

SetTraceOnLoaded() 공개 정적인 메소드

Sets the TraceOnLoaded property. This dependency property indicates whether the debugger should TraceOnLoaded when control is loaded.
public static SetTraceOnLoaded ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool /// If set to true the attached debugger will Trace when the control /// loads. ///
리턴 void

SetTraceOnTap() 공개 정적인 메소드

Sets the TraceOnTap property. This dependency property indicates whether the attached debugger should Trace when the FrameworkElement on which this property is set is tapped.
public static SetTraceOnTap ( DependencyObject d, bool value ) : void
d DependencyObject /// The DependencyObject. ///
value bool if set to true /// [value]. ///
리턴 void

프로퍼티 상세

BreakDelayProperty 공개적으로 정적으로 프로퍼티

BreakDelay Attached Dependency Property
public static DependencyProperty BreakDelayProperty
리턴 DependencyProperty

BreakOnLayoutUpdatedProperty 공개적으로 정적으로 프로퍼티

BreakOnLayoutUpdated Attached Dependency Property
public static DependencyProperty BreakOnLayoutUpdatedProperty
리턴 DependencyProperty

BreakOnLoadedProperty 공개적으로 정적으로 프로퍼티

BreakOnLoaded BreakOnLoaded Dependency Property
public static DependencyProperty BreakOnLoadedProperty
리턴 DependencyProperty

BreakOnTapProperty 공개적으로 정적으로 프로퍼티

BreakOnTap Attached Dependency Property
public static DependencyProperty BreakOnTapProperty
리턴 DependencyProperty

TraceOnLayoutUpdatedProperty 공개적으로 정적으로 프로퍼티

TraceOnLayoutUpdated Attached Dependency Property
public static DependencyProperty TraceOnLayoutUpdatedProperty
리턴 DependencyProperty

TraceOnLoadedProperty 공개적으로 정적으로 프로퍼티

TraceOnLoaded TraceOnLoaded Dependency Property
public static DependencyProperty TraceOnLoadedProperty
리턴 DependencyProperty

TraceOnTapProperty 공개적으로 정적으로 프로퍼티

TraceOnTap Attached Dependency Property
public static DependencyProperty TraceOnTapProperty
리턴 DependencyProperty