SnapshotWindow.xaml
1 <Window 2 x:Class="WorkspacesEditor.SnapshotWindow" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 6 xmlns:local="clr-namespace:WorkspacesEditor" 7 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 8 xmlns:props="clr-namespace:WorkspacesEditor.Properties" 9 xmlns:ui="http://schemas.modernwpf.com/2019" 10 Title="{x:Static props:Resources.SnapshotWindowTitle}" 11 Width="350" 12 ui:TitleBar.Background="{DynamicResource PrimaryBackgroundBrush}" 13 ui:TitleBar.InactiveBackground="{DynamicResource TertiaryBackgroundBrush}" 14 ui:WindowHelper.UseModernWindowStyle="True" 15 Background="{DynamicResource PrimaryBackgroundBrush}" 16 BorderBrush="Red" 17 BorderThickness="5" 18 Closing="Window_Closing" 19 ResizeMode="NoResize" 20 SizeToContent="Height" 21 WindowStartupLocation="CenterScreen" 22 mc:Ignorable="d"> 23 <Grid Margin="5" Background="Transparent"> 24 <Grid.RowDefinitions> 25 <RowDefinition Height="1*" /> 26 <RowDefinition Height="Auto" /> 27 </Grid.RowDefinitions> 28 <Grid.ColumnDefinitions> 29 <ColumnDefinition Width="1*" /> 30 <ColumnDefinition Width="1*" /> 31 </Grid.ColumnDefinitions> 32 <TextBlock 33 Grid.ColumnSpan="2" 34 Margin="5,5,5,15" 35 Foreground="{DynamicResource PrimaryForegroundBrush}" 36 Text="{x:Static props:Resources.SnapshotDescription}" 37 TextWrapping="Wrap" /> 38 <Button 39 x:Name="CancelButton" 40 Grid.Row="1" 41 Height="36" 42 Margin="5,5,5,5" 43 HorizontalAlignment="Stretch" 44 AutomationProperties.Name="{x:Static props:Resources.Cancel}" 45 Background="{DynamicResource SecondaryBackgroundBrush}" 46 Click="CancelButtonClicked" 47 Content="{x:Static props:Resources.Cancel}" /> 48 <Button 49 x:Name="SnapshotButton" 50 Grid.Row="1" 51 Grid.Column="1" 52 Height="36" 53 Margin="5,5,5,5" 54 HorizontalAlignment="Stretch" 55 AutomationProperties.Name="{x:Static props:Resources.Take_Snapshot}" 56 Click="SnapshotButtonClicked" 57 Content="{x:Static props:Resources.Take_Snapshot}" 58 Style="{StaticResource AccentButtonStyle}" /> 59 </Grid> 60 </Window>