<UserControl x:Class="Artemis.UI.Screens.Header.SimpleHeaderView"
             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:Artemis.UI.Screens.Header"
             xmlns:s="https://github.com/canton7/Stylet"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800"
             d:DataContext="{d:DesignInstance local:SimpleHeaderViewModel}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column="0"
                   Text="{Binding DisplayName}"
                   VerticalAlignment="Center"
                   FontSize="20"
                   Margin="15 0" />
        <StackPanel Grid.Column="1" Orientation="Horizontal">
            <TextBlock Text="{Binding FrameTime}" VerticalAlignment="Center" FontSize="14" Margin="10 0" ToolTip="The time the last frame took to render" />

            <!-- Bug: materialDesign:RippleAssist.RippleOnTop doesn't look as nice but otherwise it doesn't work at all, not sure why -->
            <Button Style="{StaticResource MaterialDesignIconForegroundButton}"
                    VerticalAlignment="Center"
                    ToolTip="Open debugger"
                    Command="{s:Action ShowDebugger}"
                    materialDesign:RippleAssist.RippleOnTop="True">
                <materialDesign:PackIcon Kind="Matrix" />
            </Button>
        </StackPanel>
    </Grid>
</UserControl>
