AuxiliaryPaneContent 内 RibbonGalleryCategory 中的单击事件?
我一直在遵循本页底部的示例:
获取“最新文档”列表。我已填充列表,我可以单击此列表中的项目,但我找不到捕获单击事件的位置。
我需要知道用户何时以及在该列表中单击了哪些项目。
如何?
I have been following the example on the bottom of this page:
to get a "Most recent documents" list. I have the list populated and I can click on the items in this list but I can't find where to catch the click event.
I need to know when and on what item the user has clicked on in this list.
How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两种方法可以解决它。
第一:使用 Ribbon.SelectionChanged 事件。它也会捕获您的 ListBox SelectionChanged 事件,您可以向其中添加逻辑。
第二:我更喜欢使用ListView,但我认为在这种情况下它是一样的。使用 Click 事件创建自定义列表框。
There are two ways you can solve it.
First: Use Ribbon.SelectionChanged event. It will catch your ListBox SelectionChanged event too and you can add your logic to it.
Second: I prefer to use ListView but I think its the same in this case. Create your custom ListBox with Click event.