Listbox横向显示和dataTemplate
来源:互联网 发布:淘宝旺旺网页版 编辑:程序博客网 时间:2024/05/15 00:28
<Window x:Class="PhotoData.AddPhotosWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="AddPhotosWindow" Height="600" Width="800"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="26"/> <RowDefinition/> <RowDefinition Height="26"/> </Grid.RowDefinitions> <Button Content="批量添加照片" Width="100" HorizontalAlignment="Left" Margin="5,2" Click="AddPhotoes"/> <ListBox Grid.Row="1" ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel IsItemsHost="True"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <HierarchicalDataTemplate> <Grid Margin="5"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="26"/> </Grid.RowDefinitions> <Image Stretch="Fill" Width="100" Height="100" Source="{Binding ImageSourcePath}"/> <TextBlock Grid.Row="1" HorizontalAlignment="Center" Text="{Binding PhotoName}"/> </Grid> </HierarchicalDataTemplate> </ListBox.ItemTemplate> </ListBox> <Button Grid.Row="2" HorizontalAlignment="Right" Margin="5,2" Height="22" Width="60" Content="保存" Click="SavePhotos"/> </Grid></Window>
0 0
- Listbox横向显示和dataTemplate
- WPF listbox 的datatemplate中添加触发器,控制template中某个按钮的显示隐藏
- WPF/Silverlight ListBox 数据横向显示的实现
- WP ListBox 遍历DataTemplate(获取所有控件)
- WPF ListBox 横向排列
- WPF ListBox 横向排列
- ControlTemplate和DataTemplate区别
- DataTemplate
- 【WPF】ListBox使用DataTemplate 以及默认选中第一项Item
- listbox 带横向滚动条
- ListBox增加横向滚动条
- ListBox 添加横向滚动条
- vb6 ListBox横向滚动条
- DropDownList 和ListBox选中显示方法区别
- 用 ListBox 和 DataBinding 显示列表数据
- ControlTemplate和DataTemplate的区别
- ControlTemplate和DataTemplate的区别
- DataTemplate和ControlTemplate的关系
- Android开发规范——命名
- 【Android 开发实例】时间管理APP开发之数据库设计
- zoj 3696 Alien's Organ(泊松分布)
- Java编程思想读书笔记-6
- Android开发中java 命名规则包的命名 .
- Listbox横向显示和dataTemplate
- Objective-C中的浅拷贝和深拷贝
- C# 标签(条码)的打印与设计(一)
- java事件处理机制
- C# DataTable排序、查询、合并操作
- apcera
- 在DIV中自动换行
- MFC画图
- Actionbar相关