Class DependencyObject
Implements dependency object for dependency properties
Inheritance
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class DependencyObject : DispatcherObject
Constructors
DependencyObject()
Initializes a new instance of the DependencyObject class.
Declaration
public DependencyObject()
Properties
DependencyObjectType
Gets the type of the dependency object.
Declaration
public DependencyObjectType DependencyObjectType { get; }
Property Value
Type | Description |
---|---|
DependencyObjectType | The type of the dependency object. |
IsSealed
Gets a value indicating whether this instance is sealed.
Declaration
public bool IsSealed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
ClearValue(DependencyProperty)
Clears the value.
Declaration
public void ClearValue(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
CoerceValue(DependencyProperty)
Coerces the value.
Declaration
public void CoerceValue(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override sealed bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override sealed int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
GetLocalValueEnumerator()
Gets the local value enumerator.
Declaration
public IEnumerator<LocalValueEntry> GetLocalValueEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<LocalValueEntry> |
GetValue(DependencyProperty)
Gets the value.
Declaration
public object GetValue(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
Returns
Type | Description |
---|---|
System.Object |
OnPropertyChanged(DependencyProperty)
Called when [property changed].
Declaration
protected virtual void OnPropertyChanged(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
ReadLocalValue(DependencyProperty)
Reads the local value.
Declaration
public object ReadLocalValue(DependencyProperty property)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
Returns
Type | Description |
---|---|
System.Object |
SetBinding(DependencyProperty, Binding)
Sets the binding.
Declaration
public BindingExpression SetBinding(DependencyProperty property, Binding binding)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
Binding | binding | The binding. |
Returns
Type | Description |
---|---|
BindingExpression |
SetResourceReference(DependencyProperty, Object)
Sets the resource reference.
Declaration
public void SetResourceReference(DependencyProperty property, object resourceKey)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
System.Object | resourceKey | The resource key. |
SetValue(DependencyProperty, Object)
Sets the value.
Declaration
public void SetValue(DependencyProperty property, object value)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The property. |
System.Object | value | The value. |