第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
相关文章推荐
- 第553篇--MenuItems Binding
- Enum Binding ItemsSource In WPF
- 谷歌眼镜Mirror API之Menu Items
- Listbox Binding ItemsSource
- Enum Binding ItemsSource In WPF
- WPF的ItemsControl设置数据源以及Binding使用
- 【转】Custom Menu Items Created on the fly With Excel VBA
- WPF中的binding(四)- 使用集合对象作为列表控件的ItemsSource
- To Turn Recent Items On or Off in Start Menu Properties
- WPF(Binding of ItemsControl)
- WPF Binding ItemsSource to Enum
- WPF(Binding of ItemsControl)
- Binding(四)——使用集合对象作为列表控件的ItemsSource
- Adding Menu Items Based on an Intent
- 关于custommenuitems.cfg的设置问题
- [转载]Customizing the Context Menu of Document Library Items
- ASP.NET2.0 Menu Control set static item selected when select its child dynamic items
- Menu Items are not showing on Action Bar
- WPF应用Binding之ItemsSource
- BHO开发浏览器插件-Adding Menu Items