<Window x:Class="EarTrumpet.UI.Views.DialogWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Event="clr-namespace:EarTrumpet.Extensions.EventBinding"
        xmlns:Theme="clr-namespace:EarTrumpet.UI.Themes"
        xmlns:b="clr-namespace:EarTrumpet.UI.Behaviors"
        Name="WindowRoot"
        Title="{Binding Title}"
        Theme:AcrylicBrush.Background="AcrylicColor_Settings"
        Theme:Brush.Background="Background"
        Theme:Options.Source="App"
        b:FrameworkElementEx.DisplaySettingsChanged="{Binding DisplaySettingsChanged}"
        b:FrameworkElementEx.FlowDirection="Auto"
        Closing="{Event:Binding OnClosing}"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        Style="{StaticResource DialogWindowStyle}"
        TextOptions.TextFormattingMode="Display"
        UseLayoutRounding="True"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <DockPanel LastChildFill="True">
            <Grid DockPanel.Dock="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBlock Margin="14,0,0,0"
                           Text="{Binding VisibleTitle}"
                           TextAlignment="Left" />
                <Button x:Name="CloseButton"
                        Grid.Column="3"
                        Style="{StaticResource CloseButtonStyle}" />
            </Grid>
            <Grid>
                <ContentControl Content="{Binding}"
                                Focusable="False"
                                IsTabStop="False" />
            </Grid>
        </DockPanel>
    </Grid>
</Window>
