PropertyMetadata.DefaultValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default value for the dependency property.
public:
property Platform::Object ^ DefaultValue { Platform::Object ^ get(); };
IInspectable DefaultValue();
public object DefaultValue { get; }
var object = propertyMetadata.defaultValue;
Public ReadOnly Property DefaultValue As Object
Property Value
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.