<Button Content="{Binding Path=(DockPanel.Dock),ElementName=Element_ListBox,Mode=TwoWay}">
是可以绑定附加属性的,记得给两侧加括号
<Button Content="{Binding Path=(DockPanel.Dock),ElementName=Element_ListBox,Mode=TwoWay}">
是可以绑定附加属性的,记得给两侧加括号
下一篇:WPF技巧(1)异步绑定
附加属性本质也是依赖属性,依赖属性的宿主位置不一样。 XAML: <Window x:Class
XAML开发WPF程序入门之附加属性和绑定属性
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M