WarningItem.xaml.cs 482 B

12345678910111213141516171819
  1. namespace HistoryView.Controls;
  2. public partial class WarningItem : UserControl
  3. {
  4. public WarningItem()
  5. {
  6. InitializeComponent();
  7. }
  8. public AlarmInfo Alarm
  9. {
  10. get { return (AlarmInfo)GetValue(AlarmProperty); }
  11. set { SetValue(AlarmProperty, value); }
  12. }
  13. public static readonly DependencyProperty AlarmProperty =
  14. DependencyProperty.Register("Alarm", typeof(AlarmInfo), typeof(WarningItem), new PropertyMetadata(default));
  15. }