Class DependencyObject
Represents an object that participates in the dependency property system. DependencyObject
is the immediate base class of many important UI-related classes, such as
UIElement, Geometry, FrameworkTemplate, Style, and ResourceDictionary.
Inheritance
System.Object
DependencyObject
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
public class DependencyObject
Constructors
|
Improve this Doc
View Source
DependencyObject()
Declaration
public DependencyObject()
Properties
|
Improve this Doc
View Source
Dispatcher
Gets the CoreDispatcher that this object is associated with.
Declaration
public Dispatcher Dispatcher { get; }
Property Value
Methods
|
Improve this Doc
View Source
CheckAccess()
Declaration
[NotImplemented]
public bool CheckAccess()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearValue(DependencyProperty)
Clears the local value of a property
Declaration
public void ClearValue(DependencyProperty dp)
Parameters
|
Improve this Doc
View Source
CoerceValue(DependencyProperty)
Declaration
public void CoerceValue(DependencyProperty dp)
Parameters
|
Improve this Doc
View Source
GetAnimationBaseValue(DependencyProperty)
Declaration
[NotImplemented]
public object GetAnimationBaseValue(DependencyProperty dp)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
GetAnimationValue(DependencyProperty)
Declaration
public object GetAnimationValue(DependencyProperty dependencyProperty)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
GetValue(DependencyProperty)
Returns the current effective value of a dependency property from a DependencyObject.
Declaration
public object GetValue(DependencyProperty dependencyProperty)
Parameters
Type |
Name |
Description |
DependencyProperty |
dependencyProperty |
The DependencyProperty identifier of the property for which to retrieve the
value.
|
Returns
Type |
Description |
System.Object |
Returns the current effective value.
|
|
Improve this Doc
View Source
GetVisualStateValue(DependencyProperty)
Declaration
public object GetVisualStateValue(DependencyProperty dependencyProperty)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
INTERNAL_OnAttachedToVisualTree()
Declaration
protected virtual void INTERNAL_OnAttachedToVisualTree()
|
Improve this Doc
View Source
INTERNAL_OnDetachedFromVisualTree()
Declaration
protected virtual void INTERNAL_OnDetachedFromVisualTree()
|
Improve this Doc
View Source
ReadLocalValue(DependencyProperty)
Returns the local value of a dependency property, if a local value is set.
Declaration
public object ReadLocalValue(DependencyProperty dp)
Parameters
Type |
Name |
Description |
DependencyProperty |
dp |
The DependencyProperty identifier of the property for which to retrieve the
local value.
|
Returns
Type |
Description |
System.Object |
Returns the local value, or returns the sentinel value UnsetValue if no local
value is set.
|
|
Improve this Doc
View Source
SetAnimationValue(DependencyProperty, Object)
Declaration
public void SetAnimationValue(DependencyProperty dependencyProperty, object value)
Parameters
|
Improve this Doc
View Source
SetCurrentValue(DependencyProperty, Object)
Declaration
public void SetCurrentValue(DependencyProperty dp, object value)
Parameters
|
Improve this Doc
View Source
SetValue(DependencyProperty, Object)
Declaration
public void SetValue(DependencyProperty dp, object value)
Parameters
|
Improve this Doc
View Source
SetVisualStateValue(DependencyProperty, Object)
Declaration
public void SetVisualStateValue(DependencyProperty dependencyProperty, object value)
Parameters
Extension Methods