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

第553篇--MenuItems Binding

2013-05-24 10:34 218 查看
<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: