Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. class SomeControl : TestControl
  2. {
  3.     public string Test
  4.     {
  5.         get { return (string)GetValue(TestProperty); }
  6.         set { SetValue(TestProperty, value); }
  7.     }
  8.  
  9.     // Using a DependencyProperty as the backing store for Test.  This enables animation, styling, binding, etc...
  10.     public static readonly DependencyProperty TestProperty =
  11.         DependencyProperty.Register("Test", typeof(string), typeof(SomeControl), new PropertyMetadata(default));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement