DevicePlot.xaml.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using Device;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace DeviceManagement.Controls
  17. {
  18. /// <summary>
  19. /// Interaction logic for DevicePlot.xaml
  20. /// </summary>
  21. public partial class DevicePlot : UserControl
  22. {
  23. public DevicePlot()
  24. {
  25. InitializeComponent();
  26. }
  27. public DeviceInfo DeviceInfo
  28. {
  29. get { return (DeviceInfo)GetValue(DeviceInfoProperty); }
  30. set { SetValue(DeviceInfoProperty, value); }
  31. }
  32. // Using a DependencyProperty as the backing store for DeviceInfo. This enables animation, styling, binding, etc...
  33. public static readonly DependencyProperty DeviceInfoProperty =
  34. DependencyProperty.Register("DeviceInfo", typeof(DeviceInfo), typeof(DevicePlot), new PropertyMetadata(default));
  35. public ICommand SettingCommand
  36. {
  37. get { return (ICommand)GetValue(SettingCommandProperty); }
  38. set { SetValue(SettingCommandProperty, value); }
  39. }
  40. // Using a DependencyProperty as the backing store for SettingCommand. This enables animation, styling, binding, etc...
  41. public static readonly DependencyProperty SettingCommandProperty =
  42. DependencyProperty.Register("SettingCommand", typeof(ICommand), typeof(DevicePlot), new PropertyMetadata(default));
  43. public ICommand DetailCommand
  44. {
  45. get { return (ICommand)GetValue(DetailCommandProperty); }
  46. set { SetValue(DetailCommandProperty, value); }
  47. }
  48. // Using a DependencyProperty as the backing store for DetailCommand. This enables animation, styling, binding, etc...
  49. public static readonly DependencyProperty DetailCommandProperty =
  50. DependencyProperty.Register("DetailCommand", typeof(ICommand), typeof(DevicePlot), new PropertyMetadata(default));
  51. }
  52. }