mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
52371ace3a
WIP
111 lines
4.6 KiB
XML
111 lines
4.6 KiB
XML
<Window x:Class="Azaion.Annotator.DatasetExplorer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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"
|
|
xmlns:controls="clr-namespace:Azaion.Annotator.Controls"
|
|
mc:Ignorable="d"
|
|
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"
|
|
Background="Black"
|
|
HorizontalAlignment="Stretch">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="32"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="4"/>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<controls:AnnotationClasses
|
|
x:Name="LvClasses"
|
|
Grid.Column="0"
|
|
Grid.Row="0">
|
|
</controls:AnnotationClasses>
|
|
|
|
<TabControl
|
|
Name="Switcher"
|
|
Grid.Column="2"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="Black">
|
|
<TabItem Header="Браузер">
|
|
<vwp:GridView
|
|
Name="ThumbnailsView"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="Black"
|
|
Margin="2,5,2,2"
|
|
ItemsSource="{Binding ThumbnailsDtos, Mode=OneWay}"
|
|
ItemTemplate="{StaticResource ThumbnailTemplate}"
|
|
>
|
|
</vwp:GridView>
|
|
</TabItem>
|
|
<TabItem Header="Перегляд">
|
|
<controls:CanvasEditor x:Name="ExplorerEditor"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch" >
|
|
</controls:CanvasEditor>
|
|
</TabItem>
|
|
</TabControl>
|
|
<StatusBar
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Background="#252525"
|
|
Foreground="White"
|
|
>
|
|
<StatusBar.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
</Grid>
|
|
</ItemsPanelTemplate>
|
|
</StatusBar.ItemsPanel>
|
|
<StatusBarItem Grid.Column="0" Background="Black">
|
|
<TextBlock>Loading:</TextBlock>
|
|
</StatusBarItem>
|
|
<StatusBarItem Grid.Column="1" Background="Black">
|
|
<controls:UpdatableProgressBar x:Name="Volume"
|
|
Width="150"
|
|
Height="15"
|
|
HorizontalAlignment="Stretch"
|
|
Background="#252525"
|
|
BorderBrush="#252525"
|
|
Foreground="LightBlue"
|
|
Maximum="100"
|
|
Minimum="0">
|
|
</controls:UpdatableProgressBar>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="2"/>
|
|
<StatusBarItem Grid.Column="3" Background="Black">
|
|
<TextBlock Text="{Binding AnnotationCount}" />
|
|
</StatusBarItem>
|
|
</StatusBar>
|
|
</Grid>
|
|
</Window>
|