| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using System.Windows;
- using System.Windows.Controls;
- namespace ParameterModule.Controls;
- /// <summary>
- /// Interaction logic for AlarmConditionTable.xaml
- /// </summary>
- public partial class AlarmConditionTable : UserControl
- {
- public AlarmConditionTable()
- {
- InitializeComponent();
- }
- public IEnumerable<AlarmPair> Source
- {
- get { return (IEnumerable<AlarmPair>)GetValue(SourceProperty); }
- set { SetValue(SourceProperty, value); }
- }
- // Using a DependencyProperty as the backing store for Source. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty SourceProperty =
- DependencyProperty.Register(nameof(Source), typeof(IEnumerable<AlarmPair>), typeof(AlarmConditionTable), new PropertyMetadata(default));
- public string Title
- {
- get { return (string)GetValue(TitleProperty); }
- set { SetValue(TitleProperty, value); }
- }
- // Using a DependencyProperty as the backing store for Title. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty TitleProperty =
- DependencyProperty.Register(nameof(Title), typeof(string), typeof(AlarmConditionTable), new PropertyMetadata(default));
- }
|