Skip to content

Conversation

jiggak
Copy link
Contributor

@jiggak jiggak commented Feb 12, 2015

These fixes make SplitButton work a little bit better as a drop in replacement for ComboBox

Using 0 as the default selected index would cause SplitButton to
always set SelectedItem to the first element in the ItemsSource.

When SelectedItem is bound to a property in the ViewModel the
value set in the ViewModel is ignored/replaced.
Using two-way binding by default for SelectedItem and SelectedIndex
matches the behaviour of other controls like ComboBox
@thoemmi
Copy link
Collaborator

thoemmi commented Feb 12, 2015

👍

punker76 added a commit that referenced this pull request Feb 13, 2015
Fix SplitButton SelectedIndex and SelectedItem
@punker76 punker76 merged commit 26b8f40 into MahApps:master Feb 13, 2015
@punker76
Copy link
Member

@jiggak thx

@punker76 punker76 added this to the 1.1.0 milestone Feb 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants