-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathImageClippingWindow.xaml
53 lines (53 loc) · 4.22 KB
/
ImageClippingWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<Window x:Class="SNIBypassGUI.ImageClippingWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:imagecropper="clr-namespace:ImageCropper;assembly=ImageCropper"
xmlns:local="clr-namespace:SNIBypassGUI"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Title="图像裁剪" Height="660" Width="890" Loaded="Window_Loaded" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None">
<Grid x:Name="VideoHelp">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Background>
<ImageBrush Stretch="UniformToFill" ImageSource="/Resources/DefaultBkg.png"/>
</Grid.Background>
<Border x:Name="TopBar" Grid.Row="0" Margin="20,10,20,0" Background="#70FFFFFF" BorderThickness="1.5,1.5,1.5,1.5" CornerRadius="5,5,5,5">
<Border.BorderBrush>
<LinearGradientBrush EndPoint="1,0">
<GradientStop Color="#FFCE00FF"/>
<GradientStop Color="#FF0057CC" Offset="1"/>
</LinearGradientBrush>
</Border.BorderBrush>
<TextBlock Margin="5" TextWrapping="Wrap" Text="裁剪图像" FontSize="21" Foreground="#FF00A7FF" FontFamily="{StaticResource 腾祥沁圆简-W2}" TextAlignment="Center"/>
</Border>
<Border Grid.Row="1" Margin="20,10,20,5" CornerRadius="5,5,5,5" Background="#70000000" BorderBrush="White" BorderThickness="1.5,1.5,1.5,1.5">
<imagecropper:ImageCropper x:Name="ImageCropperControl" Padding="20" CropShape="Rectangular" CropperEnable="True" DragImgEnable="True" ThumbMode="Draw"/>
</Border>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<hc:Badge x:Name="HelpBadge" Panel.ZIndex="1" Text="New" BadgeMargin="0" Style="{StaticResource BadgeDanger}" BorderBrush="White" Foreground="White">
<hc:Badge.Background>
<LinearGradientBrush EndPoint="1,0">
<GradientStop Color="#FF33A1DB"/>
<GradientStop Color="#FFB158D4" Offset="1"/>
</LinearGradientBrush>
</hc:Badge.Background>
</hc:Badge>
<Button x:Name="HelpBtn" Grid.Column="0" Click="HelpBtn_Click" Height="30" Margin="20,10,5,10" HorizontalAlignment="Stretch" hc:IconElement.Geometry="{StaticResource HelpGeometry}" Content="操作指引" Background="#70FFFFFF" FontSize="17" FontFamily="{StaticResource 腾祥沁圆简-W2}" VerticalContentAlignment="Center" Foreground="#FFFF38EE" BorderBrush="#FFFF38EE"/>
<Button x:Name="ResetBtn" Grid.Column="1" Click="ResetBtn_Click" Height="30" Margin="5,10,5,10" HorizontalAlignment="Stretch" hc:IconElement.Geometry="{StaticResource RefreshGeometry}" Content="重置" Background="#70FFFFFF" FontSize="17" FontFamily="{StaticResource 腾祥沁圆简-W2}" Foreground="#FF003AED" BorderBrush="#FF003AED" VerticalContentAlignment="Center"/>
<Button x:Name="CancelBtn" Grid.Column="2" Click="CancelBtn_Click" Height="30" Margin="5,10,5,10" HorizontalAlignment="Stretch" hc:IconElement.Geometry="{StaticResource DiscardGeometry}" Content="取消" Background="#70FFFFFF" FontSize="17" FontFamily="{StaticResource 腾祥沁圆简-W2}" VerticalContentAlignment="Center" Foreground="#FFFF2424" BorderBrush="#FFFF2424"/>
<Button x:Name="OKBtn" Grid.Column="3" Click="OKBtn_Click" Height="30" Margin="5,10,20,10" HorizontalAlignment="Stretch" hc:IconElement.Geometry="{StaticResource CropGeometry}" Content="完成" Background="#70FFFFFF" FontSize="17" FontFamily="{StaticResource 腾祥沁圆简-W2}" VerticalContentAlignment="Center" Foreground="#FF00ED66" BorderBrush="#FF00ED66"/>
</Grid>
</Grid>
</Window>