Skip to content

Commit

Permalink
Add selection handler after binding. (DynamoDS#14744)
Browse files Browse the repository at this point in the history
  • Loading branch information
twastvedt authored Dec 12, 2023
1 parent f5fddc3 commit 8435171
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 8435171

Please sign in to comment.