第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>
相关文章推荐
- Android menu菜单items间隔设置
- 报错:menu中的item,提示:Menu items should specify a title less... (Ctrl+F1)
- MS CRM 4.0 Rename or Remove Left Nav Bar Menu Items. Written by: Michael Thompson
- BHO开发浏览器插件-Adding Menu Items
- Enum Binding ItemsSource In WPF
- 谷歌眼镜Mirror API之Menu Items
- [转载]Enum Binding ItemsSource In WPF
- ASP.NET 2.0 Menu Control: set static item selected when select its child dynamic items/选择men
- ASP.NET2.0 Menu Control set static item selected when select its child dynamic items
- 关于custommenuitems.cfg的设置问题
- WPF Binding ItemsSource to Enum
- Listbox Binding ItemsSource
- Adding Menu Items Based on an Intent
- Simple Bitmapped menu items
- IDBUX: Radio Menu Items
- Menu Items are not showing on Action Bar
- WPF应用Binding之ItemsSource
- 获取ItemsControl中当前item的binding数据
- 在globalmenuitems.h里新加menu id 后模拟器modis 从头开始编译()
- WPF(Binding of ItemsControl)