80 lines
2.8 KiB
XML
80 lines
2.8 KiB
XML
<Window x:Class="GifResizer.Views.MainWindow"
|
|
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"
|
|
mc:Ignorable="d"
|
|
Title="Gif resizer" Height="480" Width="640"
|
|
ResizeMode="NoResize">
|
|
|
|
<Border BorderBrush="Gray"
|
|
BorderThickness="1"
|
|
CornerRadius="5"
|
|
Padding="5"
|
|
Margin="20">
|
|
|
|
<StackPanel Orientation="Vertical" Margin="20">
|
|
|
|
<Border BorderBrush="Gray"
|
|
BorderThickness="1"
|
|
CornerRadius="5"
|
|
Padding="5"
|
|
Margin="20">
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock
|
|
Margin="0,0,0,5"
|
|
Text="{
|
|
Binding FilePath,
|
|
TargetNullValue=No file selected,
|
|
FallbackValue=Gif filepath...
|
|
}"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
/>
|
|
<Button
|
|
Content="Browse..."
|
|
Padding="5"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Click="BrowseButton_Click"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<CheckBox Content="112x112" Margin="10"/>
|
|
<CheckBox Content="500x500" Margin="10"/>
|
|
<CheckBox Content="1000x1000" Margin="10"/>
|
|
</StackPanel>
|
|
|
|
<Button
|
|
Content="Resize"
|
|
Padding="5"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Click="ResizeButton_Click"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
|
|
<!--
|
|
<TextBlock Grid.Row="3" Text="Options:" Margin="0,0,0,5"/>
|
|
|
|
<CheckBox Grid.Row="4"
|
|
Content="Optimize file size"
|
|
Margin="0,0,0,15"/>
|
|
|
|
<Button Grid.Row="5"
|
|
Content="Resize GIF"
|
|
Width="120"
|
|
Height="35"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"/>
|
|
-->
|
|
</StackPanel>
|
|
</Border>
|
|
</Window>
|