C# Class Snoop.PropertyInspector

Inheritance: INotifyPropertyChanged
Mostra file Open project: cplotts/snoopwpf Class Usage Examples

Public Properties

Property Type Description
DelveBindingCommand System.Windows.Input.RoutedCommand
DelveBindingExpressionCommand System.Windows.Input.RoutedCommand
DelveCommand System.Windows.Input.RoutedCommand
PopTargetCommand System.Windows.Input.RoutedCommand
RootTargetProperty System.Windows.DependencyProperty
SnipXamlCommand System.Windows.Input.RoutedCommand
TargetProperty System.Windows.DependencyProperty

Public Methods

Method Description
CopyFilterSets ( Snoop.PropertyFilterSet source ) : Snoop.PropertyFilterSet[]

Make a deep copy of the filter collection. This is used when heading into the Edit dialog, so the user is editing a copy of the filters, in case they cancel the dialog - we dont want to alter their live collection.

PropertyInspector ( ) : System
PushTarget ( object target ) : void
SetTarget ( object target ) : void

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
CanDelve ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanDelveBinding ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanDelveBindingExpression ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanPopTarget ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanSnipXaml ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CleansFilterPropertyNames ( IEnumerable collection ) : Snoop.PropertyFilterSet[]

Cleanse the property names in each filter in the collection. This includes removing spaces from each one, and making them all lower case

GetCurrentTypeName ( Type rootTargetType ) : string
GetDelvePath ( Type rootTargetType ) : string
GetRealTarget ( object target ) : object
HandleDelve ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleDelveBinding ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleDelveBindingExpression ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandlePopTarget ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleRootTargetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
HandleSnipXaml ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
HandleTargetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
MouseDownHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Looking for "browse back" mouse button. Pop properties context when clicked.

PopTarget ( ) : void
PropertyInspector_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Method Details

CopyFilterSets() public method

Make a deep copy of the filter collection. This is used when heading into the Edit dialog, so the user is editing a copy of the filters, in case they cancel the dialog - we dont want to alter their live collection.
public CopyFilterSets ( Snoop.PropertyFilterSet source ) : Snoop.PropertyFilterSet[]
source Snoop.PropertyFilterSet
return Snoop.PropertyFilterSet[]

OnPropertyChanged() protected method

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

PropertyInspector() public method

public PropertyInspector ( ) : System
return System

PushTarget() public method

public PushTarget ( object target ) : void
target object
return void

SetTarget() public method

public SetTarget ( object target ) : void
target object
return void

Property Details

DelveBindingCommand public_oe static_oe property

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

DelveBindingExpressionCommand public_oe static_oe property

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

DelveCommand public_oe static_oe property

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

PopTargetCommand public_oe static_oe property

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

RootTargetProperty public_oe static_oe property

public static DependencyProperty,System.Windows RootTargetProperty
return System.Windows.DependencyProperty

SnipXamlCommand public_oe static_oe property

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

TargetProperty public_oe static_oe property

public static DependencyProperty,System.Windows TargetProperty
return System.Windows.DependencyProperty