C# Class System.Windows.DependencyProperty

显示文件 Open project: Clancey/ClanceyLib Class Usage Examples

Public Properties

Property Type Description
UnsetValue object

Private Properties

Property Type Description
AddPropertyChangeCallback void
CustomUnmanagedPropertyChangedCallbackSafe void
DependencyProperty System.Collections.Generic
DependencyProperty System.Collections.Generic
GetDefaultValue object
GetDefaultValue object
InvokeChangedCallback void
Lookup DependencyProperty
Lookup DependencyProperty
Lookup DependencyProperty
Lookup DependencyProperty
LookupInternal bool
RegisterAny DependencyProperty
RegisterAttachedCore DependencyProperty
RegisterCore DependencyProperty
RegisterReadOnlyAttached DependencyProperty
RegisterReadOnlyCore DependencyProperty
TryLookup bool
UnmanagedPropertyChangedCallback void
UnmanagedPropertyChangedCallbackSafe void

Public Methods

Method Description
AddOwner ( Type ownerType ) : DependencyProperty
AddOwner ( Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
GetHashCode ( ) : int
GetMetadata ( System.Windows.DependencyObjectType dependencyObjectType ) : System.Windows.PropertyMetadata
GetMetadata ( IDependencyObject d ) : System.Windows.PropertyMetadata
GetMetadata ( Type forType ) : System.Windows.PropertyMetadata
IsValidType ( object value ) : bool
IsValidValue ( object value ) : bool
OverrideMetadata ( Type forType, System.Windows.PropertyMetadata typeMetadata ) : void
OverrideMetadata ( Type forType, System.Windows.PropertyMetadata typeMetadata, System.Windows.DependencyPropertyKey key ) : void
Register ( string name, Type propertyType, Type ownerType ) : DependencyProperty
Register ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
Register ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback ) : DependencyProperty
RegisterAttached ( string name, Type propertyType, Type ownerType ) : DependencyProperty
RegisterAttached ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : DependencyProperty
RegisterAttached ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback ) : DependencyProperty
RegisterAttachedReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : System.Windows.DependencyPropertyKey
RegisterAttachedReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback ) : System.Windows.DependencyPropertyKey
RegisterReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : System.Windows.DependencyPropertyKey
RegisterReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback ) : System.Windows.DependencyPropertyKey
ToString ( ) : string

Private Methods

Method Description
AddPropertyChangeCallback ( PropertyChangedCallback callback ) : void
CustomUnmanagedPropertyChangedCallbackSafe ( IntPtr dependency_object, IntPtr propertyChangeArgs, MoonError &error, IntPtr unused ) : void
DependencyProperty ( IntPtr handle, string name, Type property_type, Type declaring_type ) : System.Collections.Generic
DependencyProperty ( bool isAttached, string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback ) : System.Collections.Generic
GetDefaultValue ( Kind kind ) : object
GetDefaultValue ( object ob ) : object
InvokeChangedCallback ( DependencyObject obj, DependencyProperty property, PropertyChangedCallback callback, object old_obj, object new_obj ) : void
Lookup ( IntPtr native ) : DependencyProperty
Lookup ( Kind declaring_kind, string name ) : DependencyProperty
Lookup ( Kind declaring_kind, string name, Type property_type ) : DependencyProperty
Lookup ( Kind declaring_kind, string name, Type property_type, bool create ) : DependencyProperty
LookupInternal ( Kind declaring_kind, string name, Type property_type, bool create, DependencyProperty &property ) : bool
RegisterAny ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata metadata, bool attached, bool readOnly, bool setsParent, bool custom ) : DependencyProperty
RegisterAttachedCore ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : DependencyProperty
RegisterCore ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
RegisterReadOnlyAttached ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : DependencyProperty
RegisterReadOnlyCore ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : DependencyProperty
TryLookup ( Kind declaring_kind, string name, DependencyProperty &property ) : bool
UnmanagedPropertyChangedCallback ( IntPtr dependency_object, IntPtr dependency_property, IntPtr old_value, IntPtr new_value ) : void
UnmanagedPropertyChangedCallbackSafe ( IntPtr dependency_object, IntPtr propertyChangeArgs, MoonError &error, IntPtr unused ) : void

Method Details

AddOwner() public method

public AddOwner ( Type ownerType ) : DependencyProperty
ownerType Type
return DependencyProperty

AddOwner() public method

public AddOwner ( Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
ownerType Type
typeMetadata System.Windows.PropertyMetadata
return DependencyProperty

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetMetadata() public method

public GetMetadata ( System.Windows.DependencyObjectType dependencyObjectType ) : System.Windows.PropertyMetadata
dependencyObjectType System.Windows.DependencyObjectType
return System.Windows.PropertyMetadata

GetMetadata() public method

public GetMetadata ( IDependencyObject d ) : System.Windows.PropertyMetadata
d IDependencyObject
return System.Windows.PropertyMetadata

GetMetadata() public method

public GetMetadata ( Type forType ) : System.Windows.PropertyMetadata
forType Type
return System.Windows.PropertyMetadata

IsValidType() public method

public IsValidType ( object value ) : bool
value object
return bool

IsValidValue() public method

public IsValidValue ( object value ) : bool
value object
return bool

OverrideMetadata() public method

public OverrideMetadata ( Type forType, System.Windows.PropertyMetadata typeMetadata ) : void
forType Type
typeMetadata System.Windows.PropertyMetadata
return void

OverrideMetadata() public method

public OverrideMetadata ( Type forType, System.Windows.PropertyMetadata typeMetadata, System.Windows.DependencyPropertyKey key ) : void
forType Type
typeMetadata System.Windows.PropertyMetadata
key System.Windows.DependencyPropertyKey
return void

Register() public static method

public static Register ( string name, Type propertyType, Type ownerType ) : DependencyProperty
name string
propertyType Type
ownerType Type
return DependencyProperty

Register() public static method

public static Register ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : DependencyProperty
name string
propertyType Type
ownerType Type
typeMetadata System.Windows.PropertyMetadata
return DependencyProperty

Register() public static method

public static Register ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback ) : DependencyProperty
name string
propertyType Type
ownerType Type
typeMetadata System.Windows.PropertyMetadata
validateValueCallback ValidateValueCallback
return DependencyProperty

RegisterAttached() public static method

public static RegisterAttached ( string name, Type propertyType, Type ownerType ) : DependencyProperty
name string
propertyType Type
ownerType Type
return DependencyProperty

RegisterAttached() public static method

public static RegisterAttached ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : DependencyProperty
name string
propertyType Type
ownerType Type
defaultMetadata System.Windows.PropertyMetadata
return DependencyProperty

RegisterAttached() public static method

public static RegisterAttached ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback ) : DependencyProperty
name string
propertyType Type
ownerType Type
defaultMetadata System.Windows.PropertyMetadata
validateValueCallback ValidateValueCallback
return DependencyProperty

RegisterAttachedReadOnly() public static method

public static RegisterAttachedReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata ) : System.Windows.DependencyPropertyKey
name string
propertyType Type
ownerType Type
defaultMetadata System.Windows.PropertyMetadata
return System.Windows.DependencyPropertyKey

RegisterAttachedReadOnly() public static method

public static RegisterAttachedReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback ) : System.Windows.DependencyPropertyKey
name string
propertyType Type
ownerType Type
defaultMetadata System.Windows.PropertyMetadata
validateValueCallback ValidateValueCallback
return System.Windows.DependencyPropertyKey

RegisterReadOnly() public static method

public static RegisterReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata ) : System.Windows.DependencyPropertyKey
name string
propertyType Type
ownerType Type
typeMetadata System.Windows.PropertyMetadata
return System.Windows.DependencyPropertyKey

RegisterReadOnly() public static method

public static RegisterReadOnly ( string name, Type propertyType, Type ownerType, System.Windows.PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback ) : System.Windows.DependencyPropertyKey
name string
propertyType Type
ownerType Type
typeMetadata System.Windows.PropertyMetadata
validateValueCallback ValidateValueCallback
return System.Windows.DependencyPropertyKey

ToString() public method

public ToString ( ) : string
return string

Property Details

UnsetValue public_oe static_oe property

public static object UnsetValue
return object