C# Class Snoop.PropertyInformation

Inheritance: System.Windows.DependencyObject, IComparable, INotifyPropertyChanged
Afficher le fichier Open project: cplotts/snoopwpf Class Usage Examples

Méthodes publiques

Свойство Type Description
ValueProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
BuildBindingDescriptiveString string
BuildMultiBindingDescriptiveString string
GetAllProperties List
GetExtendedProperties IList
HandleChangeExpiry void
HandleValueChanged void
MergeProperties void
Update void

Méthodes publiques

Méthode Description
Clear ( ) : void
CollectionIndex ( ) : int
CompareTo ( object obj ) : int
GetNextTypeWithDefaultConstructor ( Type type ) : Type
GetProperties ( object obj ) : List
GetProperties ( object obj, Predicate filter ) : List
HasDefaultConstructor ( Type type ) : bool
IsCollection ( ) : bool
PropertyInformation ( object target, PropertyDescriptor property, string propertyName, string propertyDisplayName ) : System

Normal constructor used when constructing PropertyInformation objects for properties.

PropertyInformation ( object target, object component, string displayName, bool isCopyable = false ) : System

Constructor used when constructing PropertyInformation objects for an item in a collection. In this case, we set the PropertyDescriptor for this object (in the property Property) to be null. This kind of makes since because an item in a collection really isn't a property on a class. That is, in this case, we're really hijacking the PropertyInformation class in order to expose the items in the Snoop property grid.

Teardown ( ) : void

Méthodes protégées

Méthode Description
OnPropertyChanged ( string propertyName ) : void
OnValueChanged ( ) : void

Private Methods

Méthode Description
BuildBindingDescriptiveString ( Binding binding, bool isSinglePath ) : string

Build up a string describing the Binding. Path and ElementName (if present)

BuildMultiBindingDescriptiveString ( IEnumerable bindings ) : string

Build up a string of Paths for a MultiBinding separated by ;

GetAllProperties ( object obj, Attribute attributes ) : List
GetExtendedProperties ( object obj ) : IList

4919 + Delve

HandleChangeExpiry ( object sender, EventArgs e ) : void
HandleValueChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
MergeProperties ( System newProperties, ICollection allProperties ) : void
Update ( ) : void

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

CollectionIndex() public méthode

public CollectionIndex ( ) : int
Résultat int

CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int

GetNextTypeWithDefaultConstructor() public static méthode

public static GetNextTypeWithDefaultConstructor ( Type type ) : Type
type System.Type
Résultat System.Type

GetProperties() public static méthode

public static GetProperties ( object obj ) : List
obj object
Résultat List

GetProperties() public static méthode

public static GetProperties ( object obj, Predicate filter ) : List
obj object
filter Predicate
Résultat List

HasDefaultConstructor() public static méthode

public static HasDefaultConstructor ( Type type ) : bool
type System.Type
Résultat bool

IsCollection() public méthode

public IsCollection ( ) : bool
Résultat bool

OnPropertyChanged() protected méthode

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
Résultat void

OnValueChanged() protected méthode

protected OnValueChanged ( ) : void
Résultat void

PropertyInformation() public méthode

Normal constructor used when constructing PropertyInformation objects for properties.
public PropertyInformation ( object target, PropertyDescriptor property, string propertyName, string propertyDisplayName ) : System
target object target object being shown in the property grid
property System.ComponentModel.PropertyDescriptor the property around which we are contructing this PropertyInformation object
propertyName string the property name for the property that we use in the binding in the case of a non-dependency property
propertyDisplayName string the display name for the property that goes in the name column
Résultat System

PropertyInformation() public méthode

Constructor used when constructing PropertyInformation objects for an item in a collection. In this case, we set the PropertyDescriptor for this object (in the property Property) to be null. This kind of makes since because an item in a collection really isn't a property on a class. That is, in this case, we're really hijacking the PropertyInformation class in order to expose the items in the Snoop property grid.
public PropertyInformation ( object target, object component, string displayName, bool isCopyable = false ) : System
target object the item in the collection
component object the collection
displayName string the display name that goes in the name column, i.e. this[x]
isCopyable bool
Résultat System

Teardown() public méthode

public Teardown ( ) : void
Résultat void

Property Details

ValueProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueProperty
Résultat System.Windows.DependencyProperty