BaseJob.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace SummaryModule.Controls;
  2. /// <summary>
  3. /// Interaction logic for BaseJob.xaml
  4. /// </summary>
  5. public partial class BaseJob : UserControl
  6. {
  7. public BaseJob()
  8. {
  9. InitializeComponent();
  10. }
  11. public JobDataVM DataSource
  12. {
  13. get { return (JobDataVM)GetValue(DataSourceProperty); }
  14. set { SetValue(DataSourceProperty, value); }
  15. }
  16. // Using a DependencyProperty as the backing store for DataSource. This enables animation, styling, binding, etc...
  17. public static readonly DependencyProperty DataSourceProperty =
  18. DependencyProperty.Register(nameof(DataSource), typeof(JobDataVM), typeof(BaseJob), new PropertyMetadata(default));
  19. public JobDataVM DataSource2
  20. {
  21. get { return (JobDataVM)GetValue(DataSource2Property); }
  22. set { SetValue(DataSource2Property, value); }
  23. }
  24. // Using a DependencyProperty as the backing store for DataSource2. This enables animation, styling, binding, etc...
  25. public static readonly DependencyProperty DataSource2Property =
  26. DependencyProperty.Register(nameof(DataSource2), typeof(JobDataVM), typeof(BaseJob), new PropertyMetadata(default));
  27. }