Class DependencyPropertyExtensions
Provides extension methods for the DependencyProperty type.
Namespace: Celestial.UIToolkit.Extensions
Assembly: Celestial.UIToolkit.Core.dll
Syntax
public static class DependencyPropertyExtensions
Methods
| Improve this Doc View SourceHasLocalValue(DependencyProperty, DependencyObject)
Checks if the dependency property's local value is set for the specified dependency object.
Declaration
public static bool HasLocalValue(this DependencyProperty dp, DependencyObject depObj)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyProperty | dp | The DependencyProperty. |
| DependencyObject | depObj |
Returns
| Type | Description |
|---|---|
| Boolean |
|
IsDependencyPropertySet(DependencyObject, DependencyProperty)
Checks if the dependency property's local value is set for the specified dependency object.
Declaration
public static bool IsDependencyPropertySet(this DependencyObject depObj, DependencyProperty dp)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | depObj | |
| DependencyProperty | dp | The DependencyProperty. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
IsSet(DependencyProperty, DependencyObject)
Returns a value indicating whether the dependency property has a local value or if its current value is not its default value.
Declaration
public static bool IsSet(this DependencyProperty dp, DependencyObject depObj)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyProperty | dp | The DependencyProperty. |
| DependencyObject | depObj |
Returns
| Type | Description |
|---|---|
| Boolean | true if the dependency property can be treated as set; false if not. |