摘要: 上面实例代码展示如何将tabitem中的字段绑定到menuitem上,先通过TemplateBinding获取属性值赋值到DataContext属性,然后再通过指定的控件类型和第几个来绑定IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type ContextMenu},AncestorLevel=1},Path=DataContext}" >具体说明可以参考:http://www.cnblogs.com/lzhp/archive/2012/09/11/26 阅读全文
posted @ 2013-10-13 12:07 haiziguo 阅读(514) 评论(0) 推荐(0) 编辑