GUI/BackupFFU.xaml
<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 = "390" 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 = "50"/> <RowDefinition Height = "100"/> <RowDefinition Height = "80"/> </Grid.RowDefinitions> <StackPanel Grid.Column = "0" Grid.Row = "0" Grid.ColumnSpan = "5" VerticalAlignment = "Top"> <Label Name = "TitleLabel" Content = "Backup-FFU" FontSize = "30" HorizontalAlignment = "Center" /> </StackPanel> <StackPanel Grid.Column = "1" Grid.Row = "1" VerticalAlignment = "Bottom" HorizontalAlignment = "Right" Margin = "5"> <Label Name = "CaptureDriveLabel" Content = "CaptureDrive:" FontSize = "15" FontWeight = "Bold" /> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "1" Grid.ColumnSpan = "2" VerticalAlignment = "Center"> <ComboBox Name = "CaptureDriveComboBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "14" Height = "40" VerticalAlignment = "Center" Width = "425" /> </StackPanel> <StackPanel Grid.Column = "1" Grid.Row = "2" VerticalAlignment = "Bottom" HorizontalAlignment = "Right" Margin = "5"> <Label Name = "ImageFileLabel" Content = "ImageFile:" FontSize = "15" FontWeight = "Bold" VerticalAlignment = "Bottom" /> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "2" Grid.ColumnSpan = "2" VerticalAlignment = "Center"> <ComboBox Name = "ImageFileComboBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "14" Height = "40" IsEditable = "True" VerticalAlignment = "Center" Width = "425" /> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "3" VerticalAlignment = "Top"> <Label Name = "CaptureDriveDetails" FontSize = "14" HorizontalAlignment = "Left" /> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "3" VerticalAlignment = "Top"> <Label Name = "DestinationDetails" FontSize = "14" HorizontalAlignment = "Left" /> </StackPanel> <StackPanel Grid.Column = "3" Grid.Row = "3" VerticalAlignment = "Bottom"> <Button Name = "GoButton" Background = "#0067C0" Content = "Capture" FontSize = "15" FontWeight = "Normal" Foreground = "White" Height = "40" Width = "125" /> </StackPanel> <StackPanel Grid.Column = "1" Grid.Row = "4" Grid.ColumnSpan = "3" VerticalAlignment = "Bottom"> <StackPanel x:Name = "StackPanelDocs" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center"> <Button Name = "DocsButton" Content = "Docs" FontSize = "15" FontWeight = "Normal" Height = "40" Width = "60" /> <ComboBox Name = "DocsComboBox" BorderThickness = "2" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Width = "480" /> </StackPanel> </StackPanel> </Grid> </Controls:MetroWindow> |