Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created September 9, 2010 07:41
Show Gist options
  • Save jasonm23/571541 to your computer and use it in GitHub Desktop.
Save jasonm23/571541 to your computer and use it in GitHub Desktop.
wpf dependency property template for yasnippet
#name: DependencyProperty
# --
public static readonly DependencyProperty ${1:name}Property =
DependencyProperty.Register(
"$1",
typeof(${2:type}),
typeof(${3:enclosingType}));
public $2 $1
{
get { return ($2)GetValue($1Property); }
set { SetValue($1Property, value); }
}
$0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment