<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
             xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"
             xmlns:root="clr-namespace:Artemis.UI.Screens.Root;assembly=Artemis.UI"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:DataType="root:DefaultTitleBarViewModel"
             x:Class="Artemis.UI.Screens.Root.DefaultTitleBarView">
    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="42">
        <ContentControl Width="28"
                        Height="28"
                        Margin="0 0 29 0"
                        VerticalAlignment="Center"
                        Content="{CompiledBinding CurrentUserViewModel}"
                        windowing:AppWindow.AllowInteractionInTitleBar="True" />
        <Button Classes="title-bar-button" Command="{CompiledBinding ShowDebugger}"  windowing:AppWindow.AllowInteractionInTitleBar="True" VerticalAlignment="Top">
            <avalonia:MaterialIcon Kind="Bug"></avalonia:MaterialIcon>
        </Button>
    </StackPanel>
</UserControl>