Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace SimpleData.Windows.Client.Views
- {
- public partial class TradeItemUnitDescriptorCodeView : UserControl
- {
- public static readonly DependencyProperty PropertyNameProperty = DependencyProperty.Register(nameof(PropertyName), typeof(string), typeof(TradeItemUnitDescriptorCodeView));
- public TradeItemUnitDescriptorCodeView()
- {
- this.InitializeComponent();
- }
- public string PropertyName
- {
- get { return (string)this.GetValue(PropertyNameProperty); }
- set { this.SetValue(PropertyNameProperty, value); }
- }
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- if (this.DataContext == null)
- this.DataContext = new TradeItemUnitDescriptorCodeType();
- else
- this.DataContext = null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement