Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. namespace SimpleData.Windows.Client.Views
  2. {
  3. public partial class TradeItemUnitDescriptorCodeView : UserControl
  4. {
  5. public static readonly DependencyProperty PropertyNameProperty = DependencyProperty.Register(nameof(PropertyName), typeof(string), typeof(TradeItemUnitDescriptorCodeView));
  6.  
  7.  
  8. public TradeItemUnitDescriptorCodeView()
  9. {
  10. this.InitializeComponent();
  11. }
  12.  
  13. public string PropertyName
  14. {
  15. get { return (string)this.GetValue(PropertyNameProperty); }
  16. set { this.SetValue(PropertyNameProperty, value); }
  17. }
  18.  
  19. private void Button_Click(object sender, RoutedEventArgs e)
  20. {
  21. if (this.DataContext == null)
  22. this.DataContext = new TradeItemUnitDescriptorCodeType();
  23. else
  24. this.DataContext = null;
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement