<Border xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    BorderBrush="Black" BorderThickness="1" Padding="5" Background="White">
    <Grid HorizontalAlignment="Stretch" Name="grdModalContainer" VerticalAlignment="Stretch" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
                    
            <Border Background="{DynamicResource TitleBackgroundColor}" BorderThickness="0">
                <TextBlock Name="txtTitle" Margin="5" FontWeight="Bold" />
            </Border>
            <StackPanel Name="spButtons" Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,0,5">
                <Button Name="btnClose" Width="100" Margin="15,0,0,0">Close</Button>
            </StackPanel>  
    </Grid>
</Border>