BaseTransfer.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System.Windows.Input;
  2. namespace SummaryModule.Controls.Status;
  3. /// <summary>
  4. /// Interaction logic for BaseTransfer.xaml
  5. /// </summary>
  6. public partial class BaseTransfer : UserControl
  7. {
  8. public BaseTransfer()
  9. {
  10. InitializeComponent();
  11. }
  12. public ICommand BufferCommand
  13. {
  14. get { return (ICommand)GetValue(BufferCommandProperty); }
  15. set { SetValue(BufferCommandProperty, value); }
  16. }
  17. public static readonly DependencyProperty BufferCommandProperty =
  18. DependencyProperty.Register(nameof(BufferCommand), typeof(ICommand), typeof(BaseTransfer), new PropertyMetadata(default));
  19. public ICommand LoadPortCommand
  20. {
  21. get { return (ICommand)GetValue(LoadPortCommandProperty); }
  22. set { SetValue(LoadPortCommandProperty, value); }
  23. }
  24. // Using a DependencyProperty as the backing store for LoadPortCommand. This enables animation, styling, binding, etc...
  25. public static readonly DependencyProperty LoadPortCommandProperty =
  26. DependencyProperty.Register(nameof(LoadPortCommand), typeof(ICommand), typeof(BaseTransfer), new PropertyMetadata(default));
  27. public ICommand FimsCommand
  28. {
  29. get { return (ICommand)GetValue(FimsCommandProperty); }
  30. set { SetValue(FimsCommandProperty, value); }
  31. }
  32. // Using a DependencyProperty as the backing store for FimsCommand. This enables animation, styling, binding, etc...
  33. public static readonly DependencyProperty FimsCommandProperty =
  34. DependencyProperty.Register(nameof(FimsCommand), typeof(ICommand), typeof(BaseTransfer), new PropertyMetadata(default));
  35. }