阅读背景:

在我的HierarchicalDataTemplate中使用样式来正确格式化我的MenuItem绑定

来源:互联网 

I have a hierarchical set of data that I am binding to a menu, and it works fine but I am displaying the menu items icon and name in a stackpanel which are both in the header section of the menu, this results in a odd look as the icon column of the bound menuitems does not get used. Would like to know how to go about properly formatting my XAML so the icon of the various bound types actually gets bound to the MenuItem's Icon property rather than sitting in the Header section.I have a hierarchical set of data that I am bin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: