我有一个ComboBox
绑定到实体 (EF) 的县。区域的还有另一个ComboBox
。这些控件采用编辑形式。
所以用户选择了这些值。在这种形式中,用户可以编辑选择的值。因此,当加载窗口时,选择的值被选择为默认值。这些ComboBox
es 中的每一个都有一个SelectionChanged
事件。
The problem is that when the default value is selected (when the window is being loaded), the SelectionChanged
event is triggered. 很明显。ComboBox
但我希望只有当用户真正选择另一个项目(来自 County )来过滤 Area时才触发事件ComboBox
。
我怎样才能做到这一点?