namespace SummaryModule.Controls; /// /// Interaction logic for BaseJob.xaml /// public partial class BaseJob : UserControl { public BaseJob() { InitializeComponent(); } public JobDataVM DataSource { get { return (JobDataVM)GetValue(DataSourceProperty); } set { SetValue(DataSourceProperty, value); } } // Using a DependencyProperty as the backing store for DataSource. This enables animation, styling, binding, etc... public static readonly DependencyProperty DataSourceProperty = DependencyProperty.Register(nameof(DataSource), typeof(JobDataVM), typeof(BaseJob), new PropertyMetadata(default)); public JobDataVM DataSource2 { get { return (JobDataVM)GetValue(DataSource2Property); } set { SetValue(DataSource2Property, value); } } // Using a DependencyProperty as the backing store for DataSource2. This enables animation, styling, binding, etc... public static readonly DependencyProperty DataSource2Property = DependencyProperty.Register(nameof(DataSource2), typeof(JobDataVM), typeof(BaseJob), new PropertyMetadata(default)); }