C# Класс Snoop.PropertyInformation

Наследование: System.Windows.DependencyObject, IComparable, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ValueProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
BuildBindingDescriptiveString string
BuildMultiBindingDescriptiveString string
GetAllProperties List
GetExtendedProperties IList
HandleChangeExpiry void
HandleValueChanged void
MergeProperties void
Update void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnPropertyChanged ( string propertyName ) : void
OnValueChanged ( ) : void

Приватные методы

Метод Описание
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

Описание методов

Clear() публичный Метод

public Clear ( ) : void
Результат void

CollectionIndex() публичный Метод

public CollectionIndex ( ) : int
Результат int

CompareTo() публичный Метод

public CompareTo ( object obj ) : int
obj object
Результат int

GetNextTypeWithDefaultConstructor() публичный статический Метод

public static GetNextTypeWithDefaultConstructor ( Type type ) : Type
type System.Type
Результат System.Type

GetProperties() публичный статический Метод

public static GetProperties ( object obj ) : List
obj object
Результат List

GetProperties() публичный статический Метод

public static GetProperties ( object obj, Predicate filter ) : List
obj object
filter Predicate
Результат List

HasDefaultConstructor() публичный статический Метод

public static HasDefaultConstructor ( Type type ) : bool
type System.Type
Результат bool

IsCollection() публичный Метод

public IsCollection ( ) : bool
Результат bool

OnPropertyChanged() защищенный Метод

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
Результат void

OnValueChanged() защищенный Метод

protected OnValueChanged ( ) : void
Результат void

PropertyInformation() публичный Метод

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
Результат System

PropertyInformation() публичный Метод

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
Результат System

Teardown() публичный Метод

public Teardown ( ) : void
Результат void

Описание свойств

ValueProperty публичное статическое свойство

public static DependencyProperty,System.Windows ValueProperty
Результат System.Windows.DependencyProperty