Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSelectionComboBox / MultiSelectorHelper.SelectedItems one step behind #4458

Open
TheCamel opened this issue Jan 8, 2024 · 0 comments
Open
Labels

Comments

@TheCamel
Copy link

TheCamel commented Jan 8, 2024

Describe the bug

The collection filled by the MultiSelectorHelper is not sync ; but one step behind when using the associated event. seems that client receive the mscb_Example_SelectionChanged event before the helper.

<mah:MultiSelectionComboBox x:Name="mscb_Example"
....
mah:MultiSelectorHelper.SelectedItems="{Binding SelectedAnimals}"

Steps to reproduce

in the sample application, place a breakpoint here, and check the SelectedAnimals collection - it is allways one counter behind

private void mscb_Example_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
foreach (var item in e.AddedItems)

Expected behavior

the problem is that i whant to use the selection changed event to refresh filters...but the collection is not uptodate

Environment

MahApps.Metro version: v3.0.0 - 0476
Target Framework: .Net Core 8

@TheCamel TheCamel added the Bug label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant