Resources/ConfirmationDialog.xaml

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        MinWidth="420"
        MaxWidth="680"
        MaxHeight="640"
        SizeToContent="WidthAndHeight"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner"
        ShowInTaskbar="False"
        ThemeMode="System"
        Background="{DynamicResource ApplicationBackgroundBrush}"
        Foreground="{DynamicResource TextFillColorPrimaryBrush}">
    <Window.Resources>
        <Style x:Key="ConfirmationCardStyle" TargetType="{x:Type Border}">
            <Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorDefaultBrush}" />
            <Setter Property="BorderBrush" Value="{DynamicResource ControlStrokeColorDefaultBrush}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="CornerRadius" Value="8" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(SystemParameters.HighContrast)}" Value="True">
                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
                    <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="ConfirmationFooterStyle" TargetType="{x:Type Border}">
            <Setter Property="Background" Value="{DynamicResource LayerFillColorDefaultBrush}" />
            <Setter Property="BorderBrush" Value="{DynamicResource ControlStrokeColorDefaultBrush}" />
            <Setter Property="BorderThickness" Value="0,1,0,0" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(SystemParameters.HighContrast)}" Value="True">
                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
                    <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ScrollViewer x:Name="ConfirmationDetailsScrollViewer"
                      Grid.Row="0"
                      VerticalScrollBarVisibility="Auto"
                      HorizontalScrollBarVisibility="Disabled"
                      Focusable="True"
                      AutomationProperties.Name="Confirmation details">
            <StackPanel Margin="24,20,24,20">
                <TextBlock x:Name="ConfirmationHeadingText"
                           FontSize="20"
                           FontWeight="SemiBold"
                           TextWrapping="Wrap" />
                <Border Style="{StaticResource ConfirmationCardStyle}"
                        Margin="0,16,0,0"
                        Padding="12,10">
                    <TextBlock x:Name="ConfirmationMessageText"
                               TextWrapping="Wrap" />
                </Border>
            </StackPanel>
        </ScrollViewer>
        <Border Grid.Row="1"
                Style="{StaticResource ConfirmationFooterStyle}"
                Padding="24,14">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="ConfirmationCancelButton"
                        Content="Cancel"
                        Visibility="Collapsed"
                        MinWidth="100"
                        Padding="14,6"
                        Margin="0,0,8,0" />
                <Button x:Name="ConfirmationNoButton"
                        Content="No"
                        IsCancel="True"
                        MinWidth="100"
                        Padding="14,6"
                        Margin="0,0,8,0" />
                <Button x:Name="ConfirmationYesButton"
                        Content="Yes"
                        MinWidth="100"
                        Padding="14,6" />
            </StackPanel>
        </Border>
    </Grid>
</Window>