<UserControl
    x:Class="ModernWpf.SampleApp.ControlPages.ContentDialogTestContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ui="http://schemas.modernwpf.com/2019"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ModernWpf.SampleApp.ControlPages"
    mc:Ignorable="d"
    d:DesignWidth="800"
    d:DesignHeight="450"
    Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
    <Grid Margin="12">
        <ui:SimpleStackPanel
            Spacing="12"
            HorizontalAlignment="Center"
            VerticalAlignment="Center">
            <Button
                Content="Show ContentDialog"
                Click="ShowDialog" />
            <Button
                Content="Show parented ContentDialog (Popup)"
                Click="ShowParentedDialogPopup" />
            <Button
                Content="Show parented ContentDialog (InPlace)"
                Click="ShowParentedDialogInPlace" />
            <Button
                Content="Open a new window"
                Click="OpenNewWindow" />
        </ui:SimpleStackPanel>

        <local:TestContentDialog
            x:Name="ParentedDialog"
            PrimaryButtonText="Toggle theme" />
    </Grid>
</UserControl>
