mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
Content update - How to override dependency property metadata (user story 1878471) (#1205)
* Add article, snippets, toc, and redirects * Minor edit to dependency-property-metadata article * Update dotnet-desktop-guide/net/wpf/properties/how-to-override-metadata-for-a-dependency-property.md Co-authored-by: Andy (Steve) De George <[email protected]> Co-authored-by: Andy (Steve) De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
b82ed37802
commit
c065be138a
@@ -38,7 +38,7 @@ The <xref:System.Windows.PropertyMetadata> class stores most of the metadata use
|
||||
|
||||
- Types that add themselves as an owner of a dependency property.
|
||||
|
||||
If a type registers a dependency property without specifying metadata, the property system assigns a default `PropertyMetadata` object with default values for that type to the dependency property.
|
||||
If a type registers a dependency property without specifying metadata, the property system assigns a `PropertyMetadata` object with default values for that type to the dependency property.
|
||||
|
||||
To retrieve metadata for a dependency property, call one of the <xref:System.Windows.DependencyProperty.GetMetadata%2A> overloads on the <xref:System.Windows.DependencyProperty> identifier. The metadata is returned as a `PropertyMetadata` object.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user