Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

RibbonGallery selected item stucked

$
0
0

Hi!

Inside a RibbonSplitButton I have a RibbonGallery, which has an ItemsSource of an observablecollection.
When any item on the dropdown list is clicked, it triggers a window to be displayed.
The problem is, when I close the window, and open the dropdown again, the previously selected item keeps being selected, making it unable for me to trigger the windows appearence by clicking on it.

If I update the observablecollection, the dropdown is updated, and the selection is removed, but its pretty inefficient.

Any ideas how to remove the selection in a different fashion?

Thanks in advance!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>