您的位置:首页 > 产品设计 > UI/UE

第553篇--MenuItems Binding

2019-08-11 02:28 1006 查看
原文链接:https://www.geek-share.com/detail/2580362840.html
<Menu HorizontalAlignment="Left" Margin="5,0,0,0" Background="Black" Height="20" ItemsSource="{Binding MenuList}">
<Menu.ItemContainerStyle>
<Style TargetType="MenuItem">
<Setter Property="Header" Value="{Binding MenuText}" />
<Setter Property="ItemsSource" Value="{Binding SubItems}"/>
<Setter Property="Command" Value="{Binding RunMenuCommand}" />
<Setter Property="Height" Value="20" />
</Style>
</Menu.ItemContainerStyle>
</Menu>

 

转载于:https://www.cnblogs.com/shanghaijimzhou/archive/2013/05/24/3096344.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: