Guest User

Untitled

a guest
Jun 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //Create a dependency property to wpf usercontrol
  2. public double MyProp
  3. {
  4. get { return (double)GetValue(MyPropProperty); }
  5. set { SetValue(MyPropProperty, value); }
  6. }
  7.  
  8. public static readonly DependencyProperty MyPropProperty =
  9. DependencyProperty.Register("MyProp", typeof(string),
  10. typeof(MyUserControl), new PropertyMetadata(""));
Add Comment
Please, Sign In to add comment