livia-test/Livia/Views/Controls/ImageRotationViewerGroupControl.xaml
2025-03-28 14:31:53 +08:00

34 lines
1.6 KiB
XML

<UserControl x:Class="Livia.Views.Controls.ImageRotationViewerGroupControl"
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:viewModels="clr-namespace:Livia.ViewModels"
xmlns:controls="clr-namespace:Livia.Views.Controls"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=viewModels:ImageRotationViewerGroupControlViewModel}"
d:Background="{StaticResource BackgroundColorBrush}"
d:DesignHeight="300"
d:DesignWidth="200">
<Grid>
<ItemsControl ItemsSource="{Binding ImageCollection}"
Margin="0, 10">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="{Binding ImageCollectionRows}" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<controls:ImageRotationViewerBorderlessControl DataContext="{Binding }" />
<Button Style="{StaticResource LiviaStretchIconButton}"
Margin="10 ,45"
CommandParameter="{Binding }" />
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</UserControl>