PropertyMetadata.DefaultValue Property

Definition

Gets the default value for the dependency property.

C#
public object DefaultValue { get; }

Property Value

Object

The default value for the dependency property.

Remarks

Defining the DefaultValue property for a PropertyMetadata instance is part of the scenario for defining a custom dependency property. For info and examples, see Custom dependency properties.

The default value for a dependency property is often not the apparent value at run time, even if the property is not explicitly set. For more info, see Dependency properties overview.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also