RibbonGallery选中的项目被卡住了

RibbonGallery选中的项目被卡住了

本文介绍了RibbonGallery选中的项目被卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
$


在RibbonSplitButton中我有一个 RibbonGallery ,它有一个可观察集合的ItemsSource。

当点击下拉列表列表中的任何项目时,它会触发一个窗口显示。

问题是,当我关闭窗口时,打开再次下拉,之前选择的项目一直被选中,使我无法通过点击它触发窗口外观。



如果我更新observablecollection,下拉列表会更新,并且删除选择,但效率非常低。


如何删除选择以不同的方式?



提前致谢!

解决方案

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!

解决方案


这篇关于RibbonGallery选中的项目被卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 04:18