ItemsControl使用
来源:互联网 发布:移动广告联盟源码 编辑:程序博客网 时间:2024/05/18 09:28
转载自:点击打开链接
<Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <ItemsControl VerticalAlignment="Top"> <ItemsControl.ItemTemplate> <DataTemplate> <Button Command="{Binding}" Content="{Binding}" Background="red" CommandTarget="{Binding ElementName=EditRegion}" /> </DataTemplate> </ItemsControl.ItemTemplate> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" Background="Green"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.Items> <x:Static Member="ApplicationCommands.Cut"/> <x:Static Member="ApplicationCommands.Copy"/> <x:Static Member="ApplicationCommands.Paste"/> </ItemsControl.Items> <!-- <x:Static Member="ApplicationCommands.Cut"/> <x:Static Member="ApplicationCommands.Copy"/> <x:Static Member="ApplicationCommands.Paste"/> --> </ItemsControl> <TextBox Name="EditRegion" Grid.Row="1"/> <ListBox Grid.Row="2"> <ListBox.Items> <ListBoxItem> <x:Static Member="ApplicationCommands.Cut"/> </ListBoxItem> <ListBoxItem> <x:Static Member="ApplicationCommands.Copy"/> </ListBoxItem> <ListBoxItem> <x:Static Member="ApplicationCommands.Paste"/> </ListBoxItem> </ListBox.Items> </ListBox> </Grid>
0 0
- ItemsControl使用
- ItemsControl 的使用,经典
- ItemsControl Class
- ItemsControl 解析
- 重写ItemsControl
- ItemsControl 解析
- 在WPF中使用ItemsControl控件来实现线状图控件(一)
- 【WPF】当 ItemsSource 正在使用时操作无效。改用 ItemsControl.ItemsSource 访问和修改元素
- ItemsControl A~Z----深入了解ItemsControl
- ItemsControl 的来龙去脉
- ItemsControl.GetContainerForItemOverride 方法
- WPF(ContentControl和ItemsControl)
- WPF(Binding of ItemsControl)
- ItemsControl 之template
- WPF/silverlight ItemsControl 解析
- ItemsControl 类绑定数据库
- WPF下Itemscontrol分组 样式
- 获取ItemsControl里面的控件
- iOS 使用Method Swizzling隐藏Status Bar
- 网络数据包转发过程
- The declared package "com.dao" does not match the expected package "src.com.dao"
- IOS学习 Json解析时,方便的小技巧
- Android的系统服务一览
- ItemsControl使用
- 谈谈安卓中的下拉刷新,上拉加载ListView的实现
- MySQL 5.6 for Windows 解压缩版配置安装GOOD
- unable to execute gcc-4.2
- 关于DMA的配置
- 日记的开始
- 阿愣 纸箱人
- Ubuntu下tar通过openssh加解密文件
- git rm简介