Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create a dependency property to wpf usercontrol
- public double MyProp
- {
- get { return (double)GetValue(MyPropProperty); }
- set { SetValue(MyPropProperty, value); }
- }
- public static readonly DependencyProperty MyPropProperty =
- DependencyProperty.Register("MyProp", typeof(string),
- typeof(MyUserControl), new PropertyMetadata(""));
Add Comment
Please, Sign In to add comment