我有RibbonControlsLibrary的功能区菜单。我有RibbonGalleryCategory:
<RibbonGalleryCategory Header="Recent Documents"
ItemsSource="{Binding RecentDocuments}">
...
</RibbonGalleryCategory>如何将所选项目与MVVM同步?如何在ICommand上绑定选定项?RibbonGalleryCategory.IsSynchronizedWithCurrentItem不存在。
发布于 2012-12-20 16:09:31
您的RibbonGalleryCategory需要是RibbonGallery的一部分。您可以在上面设置选定的项目。
<RibbonGallery SelectedItem="RecentDocument">
<RibbonGalleryCategory Header="Recent Documents"
ItemsSource="{Binding RecentDocuments}">
...
</RibbonGalleryCategory>
</RibbonGallery>https://stackoverflow.com/questions/4990712
复制相似问题