BaseRecipe.xaml.cs 725 B

1234567891011121314151617181920212223242526
  1. namespace SummaryModule.Controls;
  2. /// <summary>
  3. /// Interaction logic for BaseRecipe.xaml
  4. /// </summary>
  5. public partial class BaseRecipe : UserControl
  6. {
  7. public BaseRecipe()
  8. {
  9. InitializeComponent();
  10. }
  11. public RecipeDisplayVM DataSource
  12. {
  13. get { return (RecipeDisplayVM)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(RecipeDisplayVM), typeof(BaseRecipe), new PropertyMetadata(default));
  19. }