[UWP] [XAML]我自己实现CommandBar控件的问题 [英] [UWP][XAML] Problem with my own implementation of the CommandBar control
问题描述
您好,
我制作了一个自定义模板化控件,其行为与标准CommandBar控件非常相似。问题是,只要我点击我的CommandBar中包含的任何AppBarButton,就会发生未处理的异常: " No
此类界面支持" ;.
I have made a custom templated control that behave much like the standard CommandBar control. The problem is that as soon as I click on any of the AppBarButton contained in my CommandBar, an unhandled exception occurs: "No such interface supported".
有些事情我一定做错了但我却看不到。这是问题的一个小问题。
There is something I must doing wrong but I just can't see it. Here's a small repro of the problem.
https://onedrive.live.com/redir?resid=842BCFB537C257D7!21632&authkey=!ANFD9P4BnHiaNJc&ithint=file%2czip
https://onedrive.live.com/redir?resid=842BCFB537C257D7!21632&authkey=!ANFD9P4BnHiaNJc&ithint=file%2czip
非常感谢您的帮助!
Frederic
推荐答案
为什么你想创建一个自定义命令栏控件吗?
Why you want to create a custom commandbar control?
这篇关于[UWP] [XAML]我自己实现CommandBar控件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!