<UserControl x:Class="NexusShell.Controls.NexusModal"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Name="Root"
             Visibility="Collapsed">
    <Grid Panel.ZIndex="{StaticResource Nexus.ZIndex.Modal}">
        <Border Style="{StaticResource NexusModalOverlayStyle}"
                MouseLeftButtonDown="Overlay_OnMouseLeftButtonDown"/>
        <Border Style="{StaticResource NexusModalPanelStyle}"
                HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel>
                <TextBlock Text="{Binding Title, ElementName=Root}"
                           Style="{StaticResource Nexus.Text.TitleStyle}"
                           FontSize="18" Margin="0,0,0,12"/>
                <ContentPresenter Content="{Binding BodyContent, ElementName=Root}"/>
                <ContentPresenter Content="{Binding FooterContent, ElementName=Root}"
                                  Margin="0,16,0,0"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
