<UserControl x:Class="PixiEditor.Views.Dialogs.DialogTitleBar"
             x:ClassModifier="internal"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:PixiEditor.Views.Dialogs"
             xmlns:views="clr-namespace:PixiEditor.Views"
             xmlns:ui="clr-namespace:PixiEditor.Extensions.UI;assembly=PixiEditor.Extensions"
             mc:Ignorable="d"
             x:Name="uc"
             Height="35" d:DesignWidth="300">
    <Grid Grid.Row="0" Background="{StaticResource MainColor}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBlock 
            TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" 
            ui:Translator.Key="{Binding ElementName=uc, Path=TitleKey}"
            Foreground="White" 
            FontSize="15" 
            Margin="5,0,0,0" 
            Grid.Column="0" Grid.ColumnSpan="2"/>
        <Button Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource CloseButtonStyle}" IsCancel="True"
                    WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="Close"
                    Command="{Binding ElementName=uc, Path=CloseCommand}" />
    </Grid>
</UserControl>
