|
|
@@ -7,6 +7,7 @@
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:uc="clr-namespace:PicView.Avalonia.Views.UC"
|
|
|
xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
<Border
|
|
|
@@ -212,6 +213,92 @@
|
|
|
Width="12" />
|
|
|
</MenuItem.Icon>
|
|
|
</MenuItem>
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Header="{CompiledBinding Stretch, Mode=OneWay}">
|
|
|
+ <MenuItem.Icon>
|
|
|
+ <Image
|
|
|
+ Height="12"
|
|
|
+ Source="{StaticResource Image}"
|
|
|
+ Width="12" />
|
|
|
+ </MenuItem.Icon>
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="Uniform"
|
|
|
+ Header="{CompiledBinding Uniform,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsUniformMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="UniformToFill"
|
|
|
+ Header="{CompiledBinding UniformToFill,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsUniformToFillMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="Fill"
|
|
|
+ Header="{CompiledBinding Fill,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsFillMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="None"
|
|
|
+ Header="{CompiledBinding None,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsNoneMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="Square"
|
|
|
+ Header="{CompiledBinding Square,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsSquareMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ <MenuItem
|
|
|
+ Command="{CompiledBinding GalleryItemStretchCommand}"
|
|
|
+ CommandParameter="FillSquare"
|
|
|
+ Header="{CompiledBinding FillSquare,
|
|
|
+ Mode=OneWay}"
|
|
|
+ IsChecked="{CompiledBinding IsFillSquareMenuChecked}"
|
|
|
+ ToggleType="Radio" />
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem
|
|
|
+ Header="{CompiledBinding ExpandedGalleryItemSize,
|
|
|
+ Mode=OneWay}"
|
|
|
+ PointerPressed="Flyout_OnPointerPressed"
|
|
|
+ StaysOpenOnClick="True">
|
|
|
+ <MenuItem.Icon>
|
|
|
+ <Image
|
|
|
+ Height="12"
|
|
|
+ Source="{StaticResource Image}"
|
|
|
+ Width="12" />
|
|
|
+ </MenuItem.Icon>
|
|
|
+ <FlyoutBase.AttachedFlyout>
|
|
|
+ <Flyout>
|
|
|
+ <Border
|
|
|
+ Background="{DynamicResource MainButtonBackgroundColor}"
|
|
|
+ BorderBrush="{DynamicResource MainBorderColor}"
|
|
|
+ BorderThickness="2"
|
|
|
+ CornerRadius="4"
|
|
|
+ Padding="10,3">
|
|
|
+ <uc:GalleryItemSizeSlider x:Name="GalleryItemSizeSlider" />
|
|
|
+ </Border>
|
|
|
+ </Flyout>
|
|
|
+ </FlyoutBase.AttachedFlyout>
|
|
|
+ </MenuItem>
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Command="{CompiledBinding CloseGalleryCommand}" Header="{CompiledBinding HideBottomGallery, Mode=OneWay}">
|
|
|
+ <MenuItem.Icon>
|
|
|
+ <Path
|
|
|
+ Data="{StaticResource CloseGeometry}"
|
|
|
+ Fill="{DynamicResource MainTextColor}"
|
|
|
+ Height="12"
|
|
|
+ Stretch="Fill"
|
|
|
+ Width="12" />
|
|
|
+ </MenuItem.Icon>
|
|
|
+ </MenuItem>
|
|
|
</ContextMenu>
|
|
|
</Border.ContextMenu>
|
|
|
</Border>
|