From 875dd851ef5bf3485bec057232172a843c00520c Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Tue, 12 Dec 2023 00:19:37 -0600 Subject: [PATCH] Add selection handler after binding. (#14744) (cherry picked from commit 84351710ea7090a1e4abf645d83710c1ae4f189a) --- .../CoreNodeModelsWpf/NodeViewCustomizations/DSDropDownBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DSDropDownBase.cs b/src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DSDropDownBase.cs index e6456345949..9bdb8bf9637 100644 --- a/src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DSDropDownBase.cs +++ b/src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DSDropDownBase.cs @@ -37,7 +37,6 @@ public void CustomizeView(DSDropDownBase model, NodeView nodeView) Grid.SetRow(comboBox, 0); comboBox.DropDownOpened += DropDownOpened; - comboBox.SelectionChanged += SelectionChanged; comboBox.DataContext = model; @@ -56,6 +55,8 @@ public void CustomizeView(DSDropDownBase model, NodeView nodeView) Source = model }; comboBox.SetBinding(Selector.SelectedIndexProperty, indexBinding); + + comboBox.SelectionChanged += SelectionChanged; } private void SelectionChanged(object sender, SelectionChangedEventArgs e)