mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 01:26:30 +00:00
reuse VirtualizingWrapPanel for display Dataset Explorer
This commit is contained in:
@@ -3,9 +3,18 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:vwp="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
|
||||
xmlns:local="clr-namespace:Azaion.Annotator"
|
||||
xmlns:dto="clr-namespace:Azaion.Annotator.DTO"
|
||||
mc:Ignorable="d"
|
||||
Title="Браузер анотацій" Height="450" Width="800">
|
||||
Title="Браузер анотацій" Height="900" Width="1200">
|
||||
|
||||
<Window.Resources>
|
||||
<DataTemplate x:Key="ThumbnailTemplate" DataType="{x:Type dto:ThumbnailDto}">
|
||||
<Image Source="{Binding Image}" Width="480" Height="270" Margin="5" />
|
||||
</DataTemplate>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid
|
||||
Name="MainGrid"
|
||||
ShowGridLines="False"
|
||||
@@ -22,5 +31,13 @@
|
||||
<ColumnDefinition Width="4"/>
|
||||
<ColumnDefinition Width="200" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<vwp:GridView
|
||||
Grid.Column="2"
|
||||
Grid.Row="0"
|
||||
Margin="2,5,2,2"
|
||||
ItemsSource="{Binding ThumbnailsDtos, Mode=OneWay}"
|
||||
ItemTemplate="{StaticResource ThumbnailTemplate}">
|
||||
|
||||
</vwp:GridView>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user