Skip to content

Commit

Permalink
Add selection handler after binding. (DynamoDS#14744)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8435171)
  • Loading branch information
twastvedt authored and saintentropy committed Mar 14, 2024
1 parent 0018fd5 commit 875dd85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public void CustomizeView(DSDropDownBase model, NodeView nodeView)
Grid.SetRow(comboBox, 0);

comboBox.DropDownOpened += DropDownOpened;
comboBox.SelectionChanged += SelectionChanged;

comboBox.DataContext = model;

Expand All @@ -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)
Expand Down

0 comments on commit 875dd85

Please sign in to comment.