-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
109 lines (109 loc) · 6.4 KB
/
MainWindow.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<Window x:Class="IcoGenerator.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:local="clr-namespace:IcoGenerator"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="ICO Generator"
Width="455"
Height="305"
mc:Ignorable="d">
<Grid>
<Border Margin="10,21,10,61"
BorderBrush="#FFCDCDCD"
BorderThickness="1">
<Grid>
<ScrollViewer HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<ItemsControl x:Name="FileList"
Margin="5">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Margin="0,0,0,5"
Orientation="Horizontal">
<TextBlock Width="70"
Text="{Binding SizeDisplay}" />
<TextBlock Text="{Binding Filename}" />
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
<TextBlock x:Name="Hint"
Margin="50,0,50,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
FontSize="14"
Foreground="#FF919191"
Text="Drag & drop or add one PNG image for each resolution you want to embed into the ICO file.

The resolution of the PNG images is kept unchanged, they are not resized in order to keep maximum quality."
TextWrapping="Wrap" />
</Grid>
</Border>
<TextBlock Margin="0,0,10,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
FontSize="8"
Foreground="#FFCDCDCD"
Text="Michael Göricke"
TextWrapping="Wrap" />
<TextBlock Margin="10,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Text="Loaded Files:"
TextWrapping="Wrap" />
<Button Width="100"
Height="25"
Margin="10,0,0,18"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Click="OnAddButtonClicked">
<StackPanel Orientation="Horizontal">
<Path Margin="2"
Data="F0M50,0 C22.38636,0 0,22.38523 0,50 C0,77.61477 22.38636,100 50,100 C77.61364,100 100,77.61477 100,50 C100,22.38523 77.61364,0 50,0 z M50,90.90909 C27.40682,90.90909 9.09091,72.59318 9.09091,50 C9.09091,27.40682 27.40682,9.09091 50,9.09091 C72.59318,9.09091 90.90909,27.40682 90.90909,50 C90.90909,72.59318 72.59318,90.90909 50,90.90909 zM68.18182,45.45455 L54.54545,45.45455 L54.54545,31.81818 C54.54545,29.30795 52.51023,27.27273 50,27.27273 C47.48977,27.27273 45.45455,29.30795 45.45455,31.81818 L45.45455,45.45455 L31.81818,45.45455 C29.30795,45.45455 27.27273,47.48977 27.27273,50 C27.27273,52.51023 29.30795,54.54545 31.81818,54.54545 L45.45455,54.54545 L45.45455,68.18182 C45.45455,70.69205 47.48977,72.72727 50,72.72727 C52.51023,72.72727 54.54545,70.69205 54.54545,68.18182 L54.54545,54.54545 L68.18182,54.54545 C70.69205,54.54545 72.72727,52.51023 72.72727,50 C72.72727,47.48977 70.69205,45.45455 68.18182,45.45455 z"
Fill="Black"
SnapsToDevicePixels="True"
Stretch="Uniform"
UseLayoutRounding="True" />
<TextBlock Margin="5,0,0,0"
VerticalAlignment="Center"
Text="Add Images" />
</StackPanel>
</Button>
<Button Width="100"
Height="25"
Margin="126,0,0,18"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Click="OnClearButtonClicked">
<StackPanel Orientation="Horizontal">
<Path Margin="2"
Data="F0M62.925,30 L50,42.925 L37.075,30 L30,37.075 L42.925,50 L30,62.925 L37.075,70 L50,57.075 L62.925,70 L70,62.925 L57.075,50 L70,37.075 L62.925,30 z M50,0 C22.375,0 0,22.375 0,50 C0,77.625 22.375,100 50,100 C77.625,100 100,77.625 100,50 C100,22.375 77.625,0 50,0 z M50,90 C27.95,90 10,72.05 10,50 C10,27.95 27.95,10 50,10 C72.05,10 90,27.95 90,50 C90,72.05 72.05,90 50,90 z"
Fill="Black"
SnapsToDevicePixels="True"
Stretch="Uniform"
UseLayoutRounding="True" />
<TextBlock Margin="5,0,0,0"
VerticalAlignment="Center"
Text="Clear List" />
</StackPanel>
</Button>
<Button Width="100"
Height="25"
Margin="0,0,10,18"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="OnExportButtonClicked">
<StackPanel Orientation="Horizontal">
<Path Margin="2"
Data="F0M77.77778,0 L11.11111,0 C5,0 0,5 0,11.11111 L0,88.88889 C0,95 5,100 11.11111,100 L88.88889,100 C95,100 100,95 100,88.88889 L100,22.22222 L77.77778,0 L77.77778,0 z M50,88.88889 C40.55556,88.88889 33.33333,81.66667 33.33333,72.22222 C33.33333,62.77778 40.55556,55.55556 50,55.55556 C59.44444,55.55556 66.66667,62.77778 66.66667,72.22222 C66.66667,81.66667 59.44444,88.88889 50,88.88889 L50,88.88889 z M66.66667,33.33333 L11.11111,33.33333 L11.11111,11.11111 L66.66667,11.11111 L66.66667,33.33333 L66.66667,33.33333 z"
Fill="Black"
SnapsToDevicePixels="True"
Stretch="Uniform"
UseLayoutRounding="True" />
<TextBlock Margin="5,0,0,0"
VerticalAlignment="Center"
Text="Create ICO" />
</StackPanel>
</Button>
</Grid>
</Window>