BaseGas.xaml.cs 762 B

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