Show / Hide Table of Contents

Class DependencyPropertyExtensions

Provides extension methods for the DependencyProperty type.

Inheritance
Object
DependencyPropertyExtensions
Namespace: Celestial.UIToolkit.Extensions
Assembly: Celestial.UIToolkit.Core.dll
Syntax
public static class DependencyPropertyExtensions

Methods

| Improve this Doc View Source

HasLocalValue(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

A DependencyObject.

Returns
Type Description
Boolean

true, if the dependency property is set for the specified dependency object; false if not.

| Improve this Doc View Source

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

A DependencyObject.

DependencyProperty dp

The DependencyProperty.

Returns
Type Description
Boolean

true, if the dependency property is set for the specified dependency object; false if not.

| Improve this Doc View Source

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

A DependencyObject.

Returns
Type Description
Boolean

true if the dependency property can be treated as set; false if not.

  • Improve this Doc
  • View Source
Back to top Copyright © 2018 Celestial.UIToolkit - Impressum