1234567891011121314151617181920212223242526272829 |
- using System.Windows;
- using System.Windows.Controls;
- namespace OpenSEMI.Ctrlib.Controls
- {
- public class ComboBoxExt : ComboBox
- {
- public static readonly DependencyProperty ComboBoxSavedProperty = DependencyProperty.Register("ComboBoxSaved", typeof(bool), typeof(ComboBoxExt), new UIPropertyMetadata(true));
- public bool ComboBoxSaved
- {
- get
- {
- return (bool)GetValue(ComboBoxSavedProperty);
- }
- set
- {
- SetValue(ComboBoxSavedProperty, value);
- }
- }
- protected override void OnSelectionChanged(SelectionChangedEventArgs e)
- {
- base.OnSelectionChanged(e);
- ComboBoxSaved = false;
- }
- }
- }
|