Projects/ApplyFFU.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<Controls:MetroWindow
    xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls = "clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
 
    Title = "OSDeploy"
    Height = "400"
    Width = "600"
    Background = "#EDF4FE"
 
    BorderBrush = "{DynamicResource AccentColorBrush}"
    BorderThickness = "1"
    ResizeMode = "CanResizeWithGrip"
    WindowStartupLocation = "CenterScreen"
    >
 
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <!-- Accent and AppTheme setting -->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
 
            <Style TargetType="{x:Type Button}">
                <Setter Property="Background" Value="#FF1D3245" />
                <Setter Property="Foreground" Value="#FFE8EDF9" />
                <Setter Property="FontSize" Value="15" />
                <Setter Property="SnapsToDevicePixels" Value="True" />
 
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button" >
                            <Border Name = "Border"
                                BorderThickness = "1"
                                Padding = "4,2"
                                BorderBrush = "#336891"
                                CornerRadius = "1"
                                Background = "#0078d7">
                                <ContentPresenter HorizontalAlignment = "Center" VerticalAlignment = "Center" TextBlock.TextAlignment = "Center" />
                            </Border>
 
                            <ControlTemplate.Triggers>
                                <Trigger Property = "IsFocused" Value = "False">
                                    <Setter TargetName = "Border" Property = "BorderBrush" Value = "#336891" />
                                    <Setter Property = "Button.Background" Value = "#336891" />
                                </Trigger>
                                <Trigger Property = "IsMouseOver" Value="True">
                                    <Setter TargetName = "Border" Property = "BorderBrush" Value = "#FFE8EDF9" />
                                </Trigger>
                                <Trigger Property = "IsEnabled" Value = "False">
                                    <Setter TargetName = "Border" Property = "BorderBrush" Value = "#336891" />
                                    <Setter Property = "Button.Foreground" Value = "#336891" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
 
 
        </ResourceDictionary>
    </Window.Resources>
 
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width = "*"/>
            <ColumnDefinition Width = "115"/>
            <ColumnDefinition Width = "300"/>
            <ColumnDefinition Width = "125"/>
            <ColumnDefinition Width = "*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height = "50"/>
            <RowDefinition Height = "50"/>
            <RowDefinition Height = "30"/>
            <RowDefinition Height = "50"/>
            <RowDefinition Height = "110"/>
            <RowDefinition Height = "50"/>
        </Grid.RowDefinitions>
 
        <StackPanel Grid.Column = "0" Grid.Row = "0" Grid.ColumnSpan = "5" VerticalAlignment = "Top">
            <Label Name = "TitleLabel"
            FontSize = "30"
            HorizontalAlignment = "Center"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "1" Grid.Row = "1" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "5">
            <Label Name = "ApplyDriveLabel"
            Content = "ApplyDrive:"
            FontSize = "15"
            FontWeight = "Bold"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "2" Grid.Row = "1" Grid.ColumnSpan = "2" VerticalAlignment = "Center">
            <ComboBox Name = "ApplyDriveComboBox"
            BorderThickness = "2"
            FontFamily = "Segoe UI"
            FontSize = "14"
            Height = "40"
            VerticalAlignment = "Center"
            Width = "425"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "2" Grid.Row = "2" HorizontalAlignment = "Left" VerticalAlignment = "Top">
            <Label Name = "ApplyDriveDetails"
            FontSize = "14"
            HorizontalAlignment = "Left"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "1" Grid.Row = "3" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "5">
            <Label Name = "ImageFileLabel"
            Content = "ImageFile:"
            FontSize = "15"
            FontWeight = "Bold"
            VerticalAlignment = "Bottom"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "2" Grid.Row = "3" Grid.ColumnSpan = "2" VerticalAlignment = "Center">
            <ComboBox Name = "ImageFileComboBox"
            BorderThickness = "2"
            FontFamily = "Segoe UI"
            FontSize = "14"
            Height = "40"
            IsEditable = "True"
            SelectedIndex = "0"
            VerticalAlignment = "Center"
            Width = "425"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "1" Grid.Row = "4" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "5">
            <Label Name = "DismCommandLabel"
            Content = "Command:"
            FontSize = "15"
            FontWeight = "Bold"
            VerticalAlignment = "Bottom"
            />
        </StackPanel>
        <StackPanel Grid.Column = "2" Grid.Row = "4" Grid.ColumnSpan = "2" VerticalAlignment = "Center">
            <TextBox Name = "DismCommand"
            FontSize = "14"
            Height = "90"
            HorizontalAlignment = "Center"
            IsReadOnly = "True"
            TextWrapping = "Wrap"
            Width = "425"
            />
        </StackPanel>
 
        <StackPanel Grid.Column = "2" Grid.Row = "5" HorizontalAlignment = "Left" VerticalAlignment = "Bottom">
            <Button Name = "RunButton"
            Background = "#0067C0"
            Content = "Run"
            FontSize = "15"
            FontWeight = "Normal"
            Foreground = "White"
            Height = "40"
            Width = "125"
            />
        </StackPanel>
    </Grid>
</Controls:MetroWindow>