Resources/XAML/BitLocker.xaml
<UserControl 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" Style="{StaticResource Page_Style}"> <UserControl.Resources> <SolidColorBrush x:Key="PrimaryBlueColor" Color="Violet"/> <SolidColorBrush x:Key="SecondaryBlueColor" Color="#EFF2FF"/> <SolidColorBrush x:Key="PrimaryTextColor" Color="White"/> <SolidColorBrush x:Key="SecondaryTextColor" Color="#BBC1D1"/> <SolidColorBrush x:Key="PrimaryGrayColor" Color="#BBC1D1"/> <!-- START TAB ITEM STYLES --> <Style x:Key="TabItemStyle" TargetType="TabItem"> <Setter Property="Background" Value="{DynamicResource PrimaryTextColor}"/> <Setter Property="Foreground" Value="{DynamicResource SecondaryTextColor}"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Margin" Value="0,0,5,0"/> <Setter Property="Width" Value="185"/> <Setter Property="Padding" Value="8"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontSize" Value="14" /> <Setter Property="VerticalAlignment" Value="Top"/> <Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="TabItem"> <Grid SnapsToDevicePixels="True"> <Border CornerRadius="8" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Margin="{TemplateBinding Margin}"/> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" RecognizesAccessKey="True" Margin="{TemplateBinding Padding}" ContentSource="Header" Focusable="False"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="{DynamicResource SecondaryBlueColor}"/> <Setter Property="Foreground" Value="{DynamicResource PrimaryGrayColor}"/> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Property="Background" Value="{DynamicResource PrimaryBlueColor}"/> <Setter Property="Foreground" Value="{DynamicResource PrimaryTextColor}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <!-- END TAB ITEM STYLES --> <!-- START TAB CONTROL STYLES --> <Style x:Key="TabControlStyle" TargetType="TabControl"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Padding" Value="5"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="TabControl"> <Grid SnapsToDevicePixels="True"> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <!-- The horizontal alignment in this TabPanel determines the location of the tab control items --> <TabPanel Grid.Row="0" Background="Transparent" IsItemsHost="True" HorizontalAlignment="Center"/> <Border Grid.Row="1" CornerRadius="5" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"> <!-- Margin here defines the distance between tab control items and the main content below it --> <ContentPresenter ContentSource="SelectedContent" SnapsToDevicePixels="True" Margin="5,5,5,0"/> </Border> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <!-- END TAB CONTROL STYLES --> </UserControl.Resources> <ScrollViewer x:Name="MainScrollViewer" ScrollViewer.PanningMode="Both" VerticalScrollBarVisibility="Auto"> <Grid x:Name="ParentGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TabControl x:Name="TabControl" Style="{DynamicResource TabControlStyle}" Grid.Row="0" Grid.ColumnSpan="2" Padding="30,30,30,0" VerticalAlignment="Top" HorizontalAlignment="Center" > <TabItem Header="Operation System Drive" Style="{DynamicResource TabItemStyle}"> <Grid x:Name="OSDriveGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Grid.ColumnSpan="2" Grid.Row="0" Text="The Normal Security Level employs TPM with a Startup PIN. The Enhanced Security Level adds an extra layer by combining TPM, Startup PIN, and a Startup Security Key. For the Enhanced Level, you will need to select a removable drive where the Startup Security Key will be stored. This provides robust multifactor authentication for your entire device. The removable drive, along with the TPM and PIN, will be required to successfully boot the device. Both security levels also utilize a Recovery Password." Foreground="Black" FontSize="14" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,25" TextWrapping="Wrap"/> <StackPanel x:Name="BitLockerSecuriyLevelStackPanel" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,0,0,25"> <Label Content="Select the Desired Security Level" Style="{StaticResource ModernLabelStyle}" /> <ComboBox x:Name="BitLockerSecurityLevelComboBox" Width="110" Margin="10,0,0,0" FontWeight="Normal" Style="{StaticResource ModernComboBoxStyle}" ItemContainerStyle="{StaticResource ModernComboBoxItemStyle}" SelectedIndex="0"> <ComboBoxItem Content="Normal" /> <ComboBoxItem Content="Enhanced" /> </ComboBox> </StackPanel> <StackPanel x:Name="PIN1StackPanel" Orientation="Vertical" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="1" Margin="0,0,10,25"> <Label FontWeight="Normal" Content="Enter a PIN" Margin="0,0,0,3" HorizontalContentAlignment="Center"/> <PasswordBox x:Name="PIN1" Style="{StaticResource CustomPasswordBoxStyle}"/> </StackPanel> <StackPanel x:Name="PIN2StackPanel" Orientation="Vertical" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Margin="10,0,0,25"> <Label FontWeight="Normal" Content="Enter the same PIN again for confirmation" HorizontalAlignment="Center" Margin="0,0,0,3"/> <PasswordBox x:Name="PIN2" Style="{StaticResource CustomPasswordBoxStyle}"/> </StackPanel> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="3" Grid.ColumnSpan="2" > <TextBlock x:Name="TextBlockStartupKeySelection" HorizontalAlignment="Center" FontWeight="Normal" VerticalAlignment="Center" Text="Select a Removable Drive To Store Startup Key" Foreground="Black" FontSize="16" Margin="5,0,5,0" /> <Button x:Name="RefreshRemovableDrivesInOSDriveSection" Style="{StaticResource CustomButtonStyle2}" Margin="5,0,5,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image x:Name="RefreshButtonIcon1" Width="40" Height="30"/> <TextBlock Text="Refresh" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,8,0" FontWeight="Normal"/> </StackPanel> </Button> <ComboBox x:Name="RemovableDrivesComboBox" Width="110" Margin="10,0,0,0" FontWeight="Normal" Style="{StaticResource ModernComboBoxStyle}" ItemContainerStyle="{StaticResource ModernComboBoxItemStyle}" SelectedIndex="0"></ComboBox> </StackPanel> <Button x:Name="OSDriveEncryptButton" Style="{StaticResource CustomButtonStyle2}" Margin="5,15,5,30" Grid.Row="4" Grid.ColumnSpan="2"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="Encrypt the OS Drive" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="8,0,8,0" FontWeight="SemiBold"/> </StackPanel> </Button> </Grid> </TabItem> <TabItem Header="Non-OS Drives" Style="{DynamicResource TabItemStyle}"> <Grid x:Name="NonOSDrivesGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="All non-operating system drives will be encrypted using a Recovery Password and an auto-unlock mechanism linked to the operating system drive. This ensures that, as long as the operating system drive is encrypted and unlocked, the other drives will automatically unlock as well." Foreground="Black" FontSize="14" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,25" TextWrapping="Wrap"/> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.ColumnSpan="2" > <TextBlock x:Name="TextBlockdCategories" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Select Non-OS Drives" Foreground="Black" FontSize="16" FontWeight="Normal" Margin="5,0,5,0" /> <Button x:Name="RefreshNonOSDrives" Style="{StaticResource CustomButtonStyle2}" Margin="5,0,5,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image x:Name="RefreshButtonIcon2" Width="40" Height="30"/> <TextBlock Text="Refresh" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,8,0" FontWeight="Normal"/> </StackPanel> </Button> <ComboBox x:Name="NonOSDrivesComboBox" Width="110" Margin="10,0,0,0" FontWeight="Normal" Style="{StaticResource ModernComboBoxStyle}" ItemContainerStyle="{StaticResource ModernComboBoxItemStyle}" SelectedIndex="0"></ComboBox> </StackPanel> <Button x:Name="NonOSDriveEncryptButton" Style="{StaticResource CustomButtonStyle2}" Margin="5,15,5,30" Grid.Row="2" Grid.ColumnSpan="2"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="Encrypt the Non-OS Drive" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="8,0,8,0" FontWeight="SemiBold"/> </StackPanel> </Button> </Grid> </TabItem> <TabItem Header="Removable Drives" Style="{DynamicResource TabItemStyle}"> <Grid x:Name="RemovableDrivesGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" /> <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="The removable drives will be encrypted using a Recovery Password and a Password key protector, which you can configure below. Please ensure that you securely back up your recovery keys in the Backup section and store them somewhere safe such as OneDrive's Personal Vault that requires additional authentication for access." Foreground="Black" FontSize="14" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,25" TextWrapping="Wrap"/> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.ColumnSpan="2" > <TextBlock x:Name="TextBlockCategoridfdes" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Select Removable Drives" Foreground="Black" FontSize="16" Margin="5,0,5,0" FontWeight="Normal" /> <Button x:Name="RefreshRemovableDrivesForRemovableDrivesSection" Style="{StaticResource CustomButtonStyle2}" Margin="5,0,5,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image x:Name="RefreshButtonIcon3" Width="40" Height="30"/> <TextBlock Text="Refresh" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,8,0" FontWeight="Normal"/> </StackPanel> </Button> <ComboBox x:Name="RemovableDrivesInRemovableDrivesGridComboBox" Width="110" Margin="10,0,0,0" FontWeight="Normal" Style="{StaticResource ModernComboBoxStyle}" ItemContainerStyle="{StaticResource ModernComboBoxItemStyle}" SelectedIndex="0"></ComboBox> </StackPanel> <StackPanel x:Name="Password1StackPanel" Orientation="Vertical" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="1" Margin="0,0,10,25"> <Label FontWeight="Normal" Content="Enter a Password" Margin="0,0,0,3" HorizontalContentAlignment="Center"/> <PasswordBox x:Name="Password1" Style="{StaticResource CustomPasswordBoxStyle}"/> </StackPanel> <StackPanel x:Name="Password2StackPanel" Orientation="Vertical" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Margin="10,0,0,25"> <Label FontWeight="Normal" Content="Enter the same Password again for confirmation" HorizontalAlignment="Center" Margin="0,0,0,3"/> <PasswordBox x:Name="Password2" Style="{StaticResource CustomPasswordBoxStyle}"/> </StackPanel> <Button x:Name="RemovableDriveEncryptButton" Style="{StaticResource CustomButtonStyle2}" Margin="5,15,5,30" Grid.Row="3" Grid.ColumnSpan="2"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="Encrypt the Removable Drive" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="8,0,8,0" FontWeight="SemiBold"/> </StackPanel> </Button> </Grid> </TabItem> <TabItem Header="Backup" Style="{DynamicResource TabItemStyle}"> <Grid x:Name="BackupGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Text="View and backup your recovery passwords in here." Foreground="Black" FontSize="14" FontWeight="Normal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,25" TextWrapping="Wrap"/> <StackPanel x:Name="BackupStackPanel" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" Grid.Row="1" Margin="0,0,10,25"> <Button x:Name="BackupButton" Style="{StaticResource CustomButtonStyle2}" Grid.Row="1" Margin="5,0,5,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image x:Name="BackupButtonIcon" Width="40" Height="30"/> <TextBlock Text="Backup To File" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,8,0" FontWeight="Normal"/> </StackPanel> </Button> <Button x:Name="RefreshButtonForBackup" Style="{StaticResource CustomButtonStyle2}" Grid.Row="1" Margin="5,0,5,0"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image x:Name="RefreshButtonForBackupIcon" Width="40" Height="30"/> <TextBlock Text="Refresh" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,8,0" FontWeight="Normal"/> </StackPanel> </Button> </StackPanel> <Border Margin="15,0,15,0" Grid.Row="2"> <DataGrid AutoGenerateColumns="False" RowStyle="{DynamicResource ConfirmationDataGridStyleOfRow}" ColumnHeaderStyle="{DynamicResource DataGridColumnHeaderStyle1}" CellStyle="{DynamicResource DataGridCellStyle1}" x:Name="RecoveryKeysDataGrid" Style="{DynamicResource ConfirmationDataGridStyle}"> <!-- DataGrid Columns Definitions --> <DataGrid.Columns> <DataGridTextColumn Header=" Drive " Binding="{Binding DriveLetter}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Key ID " Binding="{Binding KeyID}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Recovery Key " Binding="{Binding RecoveryKey}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Size GB " Binding="{Binding SizeGB}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Encryption % " Binding="{Binding EncryptionPercentage}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Protection Status " Binding="{Binding ProtectionStatus}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Key Protector " Binding="{Binding KeyProtector}" IsReadOnly="True" Width="Auto" /> <DataGridTextColumn Header=" Encryption Method " Binding="{Binding EncryptionMethod}" IsReadOnly="True" Width="Auto" /> </DataGrid.Columns> </DataGrid> </Border> </Grid> </TabItem> </TabControl> </Grid> </ScrollViewer> </UserControl> |