C# 클래스 Snoop.PropertyInformation

상속: System.Windows.DependencyObject, IComparable, INotifyPropertyChanged
파일 보기 프로젝트 열기: cplotts/snoopwpf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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