Created
April 25, 2018 21:40
-
-
Save punker76/556299e9c25b8e6f1af98f6056a97599 to your computer and use it in GitHub Desktop.
dependencyProperty R# template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Identifies the <see cref="$propertyName$"/> dependency property. | |
/// </summary> | |
public static readonly $dependencyProperty$ $propertyName$Property | |
= $dependencyProperty$.Register(nameof($propertyName$), typeof($propertyType$), typeof($containingType$), new PropertyMetadata(default($propertyType$))); | |
/// <summary> | |
/// Get or sets the $propertyName$ property. | |
/// </summary> | |
public $propertyType$ $propertyName$ | |
{ | |
get { return ($propertyType$) GetValue($propertyName$Property); } | |
set { SetValue($propertyName$Property, value); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment