C# Class Snoop.SnoopUI

Inheritance: INotifyPropertyChanged
Exibir arquivo Open project: cplotts/snoopwpf Class Usage Examples

Public Properties

Property Type Description
ClearSearchFilterCommand System.Windows.Input.RoutedCommand
CopyPropertyChangesCommand System.Windows.Input.RoutedCommand
HelpCommand System.Windows.Input.RoutedCommand
InspectCommand System.Windows.Input.RoutedCommand
IntrospectCommand System.Windows.Input.RoutedCommand
RefreshCommand System.Windows.Input.RoutedCommand
SelectFocusCommand System.Windows.Input.RoutedCommand
SelectFocusScopeCommand System.Windows.Input.RoutedCommand

Public Methods

Method Description
ApplyReduceDepthFilter ( Snoop.VisualTreeItem newRoot ) : void
GoBabyGo ( ) : bool
Inspect ( ) : void
Inspect ( object root, Window ownerWindow ) : void
SnoopApplication ( ) : void

Protected Methods

Method Description
OnClosing ( CancelEventArgs e ) : void

Cleanup when closing the window.

OnPropertyChanged ( string propertyName ) : void
OnSourceInitialized ( EventArgs e ) : void

Private Methods

Method Description
CheckForOtherDispatchers ( Dispatcher mainDispatcher ) : void
ClearSearchFilterHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
CopyPropertyChangesHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
DispatchOut ( object o ) : void
EnqueueAfterSettingFilter ( ) : void
FilterBindings ( Snoop.VisualTreeItem node ) : void
FilterTree ( Snoop.VisualTreeItem node, string filter ) : void
FindItem ( object target ) : Snoop.VisualTreeItem

Find the VisualTreeItem for the specified visual. If the item is not found and is not part of the Snoop UI, the tree will be adjusted to include the window the item is in.

FindRoot ( ) : object
HandleHelp ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleInspect ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleIntrospection ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Just for fun, the ability to run Snoop on itself :)

HandlePreProcessInput ( object sender, System.Windows.Input.PreProcessInputEventArgs e ) : void
HandleRefresh ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleSelectFocus ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleSelectFocusScope ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleTreeSelectedItemChanged ( object sender, EventArgs e ) : void
InitShell ( ) : void
Load ( object root ) : void
ProcessFilter ( ) : void
SaveEditedProperties ( Snoop.VisualTreeItem owningObject ) : void

Loop through the properties in the current PropertyGrid and save away any properties that have been changed by the user.

SelectItem ( DependencyObject item ) : void
SetFilter ( string value ) : void
SnoopUI ( ) : System
SnoopUI_MouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
TryGetMainWindowTitle ( ) : string
UnhandledExceptionHandler ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void

Method Details

ApplyReduceDepthFilter() public method

public ApplyReduceDepthFilter ( Snoop.VisualTreeItem newRoot ) : void
newRoot Snoop.VisualTreeItem
return void

GoBabyGo() public static method

public static GoBabyGo ( ) : bool
return bool

Inspect() public method

public Inspect ( ) : void
return void

Inspect() public method

public Inspect ( object root, Window ownerWindow ) : void
root object
ownerWindow System.Windows.Window
return void

OnClosing() protected method

Cleanup when closing the window.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

OnSourceInitialized() protected method

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
return void

SnoopApplication() public static method

public static SnoopApplication ( ) : void
return void

Property Details

ClearSearchFilterCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input ClearSearchFilterCommand
return System.Windows.Input.RoutedCommand

CopyPropertyChangesCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input CopyPropertyChangesCommand
return System.Windows.Input.RoutedCommand

HelpCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input HelpCommand
return System.Windows.Input.RoutedCommand

InspectCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input InspectCommand
return System.Windows.Input.RoutedCommand

IntrospectCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input IntrospectCommand
return System.Windows.Input.RoutedCommand

RefreshCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input RefreshCommand
return System.Windows.Input.RoutedCommand

SelectFocusCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input SelectFocusCommand
return System.Windows.Input.RoutedCommand

SelectFocusScopeCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input SelectFocusScopeCommand
return System.Windows.Input.RoutedCommand