Show / Hide Table of Contents

Class DependencyProperty

Implements register methods and cache for dependency properties

Inheritance
System.Object
DependencyProperty
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class DependencyProperty

Fields

UnsetValue

The unset value

Declaration
public static readonly object UnsetValue
Field Value
Type Description
System.Object

Properties

DefaultMetadata

Gets the default metadata.

Declaration
public FrameworkPropertyMetadata DefaultMetadata { get; }
Property Value
Type Description
FrameworkPropertyMetadata

The default metadata.

DefaultValue

Gets the default value.

Declaration
public object DefaultValue { get; }
Property Value
Type Description
System.Object

The default value.

GlobalIndex

Gets the index of the global.

Declaration
public int GlobalIndex { get; }
Property Value
Type Description
System.Int32

The index of the global.

Name

Gets the name.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name.

OwnerType

Gets the type of the owner.

Declaration
public Type OwnerType { get; }
Property Value
Type Description
System.Type

The type of the owner.

PropertyType

Gets the type of the property.

Declaration
public Type PropertyType { get; }
Property Value
Type Description
System.Type

The type of the property.

RegisteredPropertiesCount

Gets the registered properties count.

Declaration
public static int RegisteredPropertiesCount { get; }
Property Value
Type Description
System.Int32

The registered properties count.

Methods

AddOwner(Type)

Adds the owner.

Declaration
public DependencyProperty AddOwner(Type newOwnerType)
Parameters
Type Name Description
System.Type newOwnerType

The new owner.

Returns
Type Description
DependencyProperty
Exceptions
Type Condition
System.ArgumentException

Dependence Property already has this Owner Type.

GetHashCode()

Returns a hash code for this instance.

Declaration
public override 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.

Overrides
System.Object.GetHashCode()

Register(String, Type, Type, FrameworkPropertyMetadata)

Registers Dependency Property

Declaration
public static DependencyProperty Register(string name, Type propertyType, Type ownerType, FrameworkPropertyMetadata metadata)
Parameters
Type Name Description
System.String name

The name.

System.Type propertyType

Type of the property.

System.Type ownerType

Type of the owner.

FrameworkPropertyMetadata metadata

The metadata.

Returns
Type Description
DependencyProperty

RegisterAttached(String, Type, Type, FrameworkPropertyMetadata)

Registers attached dependency property

Declaration
public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, FrameworkPropertyMetadata metadata)
Parameters
Type Name Description
System.String name

The name.

System.Type propertyType

Type of the property.

System.Type ownerType

Type of the owner.

FrameworkPropertyMetadata metadata

The metadata.

Returns
Type Description
DependencyProperty
Back to top Generated by DocFX