Add desktop-guide note to all WPF property articles (#1258)

This commit is contained in:
Tris Shores
2022-01-05 09:01:06 -08:00
committed by GitHub
parent 96056b1cdf
commit 58f6e05c13
9 changed files with 23 additions and 1 deletions
@@ -14,7 +14,9 @@ helpviewer_keywords:
# How to implement a dependency property (WPF .NET)
This article describes how to implement a dependency property by using a <xref:System.Windows.DependencyProperty> field to back a common language runtime (CLR) property. Dependency properties support several advanced Windows Presentation Foundation (WPF) property system features. These features include styles, data binding, inheritance, animation, and default values. If you want properties that you define to support those features, then implement your properties as a dependency property.
[!INCLUDE [desktop guide under construction](../../includes/desktop-guide-preview-note.md)]
## Example
The following example shows how to register a dependency property, by calling the <xref:System.Windows.DependencyProperty.Register%2A> method. The `Register` method returns a <xref:System.Windows.DependencyProperty> instance called a *dependency property identifier*. The identifier is stored in a `static readonly` field, and holds the name and characteristics of a dependency property.