<Grid x:Class="PCL.PageLoginProfileSkin" Tag="False"
      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:PCL"
      mc:Ignorable="d"
      d:DesignHeight="450" d:DesignWidth="800">
    <Grid Margin="0,0,0,0" Background="{StaticResource ColorBrushTransparent}" Name="PanData">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="34" />
            <ColumnDefinition />
            <ColumnDefinition Width="34" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition Height="Auto" MinHeight="30" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Top">
            <local:MySkin HorizontalAlignment="Center" VerticalAlignment="Top" x:Name="Skin" HasCape="False"
                          Margin="0,0,0,10" IsHitTestVisible="False" />
            <TextBlock Name="TextName" Text="Username" Margin="8,0" FontSize="16" HorizontalAlignment="Center"
                       TextTrimming="CharacterEllipsis" />
            <TextBlock Name="TextType" Text="AuthType" Margin="8,4,8,5" FontSize="12" HorizontalAlignment="Center"
                       TextTrimming="CharacterEllipsis" Foreground="{DynamicResource ColorBrushGray4}" />
        </StackPanel>
        <local:MyCard Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" x:Name="PanButtons" Opacity="0"
                      CornerRadius="5" Margin="0,8,0,0">
            <StackPanel Orientation="Horizontal" Margin="10,3,9,3">
                <local:MyIconButton Height="24" Margin="0,0.5,9,0" x:Name="BtnSkin"
                                    ToolTip="{DynamicResource Launch.Account.ProfileSkin.SkinsAndCapes}"
                                    ToolTipService.Placement="Center"
                                    ToolTipService.VerticalOffset="35" ToolTipService.HorizontalOffset="1"
                                    ToolTipService.InitialShowDelay="50"
                                    LogoScale="1.08"
                                    SvgIcon="lucide/shirt">
                    <local:MyIconButton.ContextMenu>
                        <ContextMenu Closed="MenuAccountOptions_Closed" HorizontalOffset="10" VerticalOffset="18">
                            <local:MyMenuItem Click="Skin_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.ChangeSkin}" />
                            <local:MyMenuItem Click="BtnSkinSave_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.SaveSkin}" />
                            <local:MyMenuItem Click="BtnSkinRefresh_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.RefreshSkin}" />
                            <local:MyMenuItem Click="BtnSkinCape_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.ChangeCape}" />
                        </ContextMenu>
                    </local:MyIconButton.ContextMenu>
                </local:MyIconButton>
                <local:MyIconButton Height="24" Margin="0,0,9,0" x:Name="BtnEdit"
                                    ToolTip="{DynamicResource Launch.Account.ProfileSkin.EditProfile}"
                                    ToolTipService.Placement="Center" ToolTipService.VerticalOffset="35"
                                    ToolTipService.HorizontalOffset="1" ToolTipService.InitialShowDelay="50"
                                    LogoScale="1.1"
                                    SvgIcon="lucide/pencil">
                    <local:MyIconButton.ContextMenu>
                        <ContextMenu Closed="MenuAccountOptions_Closed" HorizontalOffset="10" VerticalOffset="18">
                            <local:MyMenuItem Click="BtnEditPassword_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.EditPassword}" />
                            <local:MyMenuItem Click="BtnEditName_Click"
                                              Header="{DynamicResource Launch.Account.ProfileSkin.EditUsername}" />
                        </ContextMenu>
                    </local:MyIconButton.ContextMenu>
                </local:MyIconButton>
                <local:MyIconButton Height="24" x:Name="BtnSelect" Margin="0,0,0,0" Click="ChangeProfile"
                                    ToolTip="{DynamicResource Launch.Account.ProfileSkin.SwitchProfile}"
                                    ToolTipService.Placement="Center" ToolTipService.VerticalOffset="35"
                                    ToolTipService.HorizontalOffset="1" ToolTipService.InitialShowDelay="50"
                                    LogoScale="1.15"
                                    SvgIcon="lucide/arrow-right-left" />
            </StackPanel>
        </local:MyCard>
    </Grid>
</Grid>