<Window xmlns:hc="https://handyorg.github.io/handycontrol"  x:Class="智慧物流软件系统.UserInfoView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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:local="clr-namespace:智慧物流软件系统"
        mc:Ignorable="d"
        Title="用户信息" Height="380" Width="400" ResizeMode="NoResize" FontSize="18" Icon="/Resources/Logo.ico" WindowStartupLocation="CenterScreen">
    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel x:Name="StackPanelInfo" Orientation="Horizontal">
            <Image Margin="60,15,10,15" HorizontalAlignment="Left" Width="80" Height="80" Source="/Resources/Logo.png"></Image>
            <!--盟讯-->
            <TextBlock Margin="10,30,10,0" Text="{StaticResource AboutInfo1}" FontSize="28" FontFamily="YouYuan" Foreground="SteelBlue" FontWeight="UltraBold"></TextBlock>
            <TextBlock Margin="-55,30,-55,10" Text="{StaticResource AboutInfo2}" FontSize="28" FontFamily="YouYuan" VerticalAlignment="Bottom" Foreground="SteelBlue" FontWeight="UltraBold"></TextBlock>
        </StackPanel>

        <!--使用此方式布局可以注释掉退出登录也不影响-->
        <StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <hc:Gravatar Margin="0,0,0,10" Grid.Row="1" Style="{StaticResource GravatarCircleImg}">
                <TextBlock Text="&#xe649;" TextAlignment="Center" FontSize="65" Foreground="Gray" FontFamily="{StaticResource IconFont}"></TextBlock>
            </hc:Gravatar>
            <TextBlock Margin="0,10,0,20" HorizontalAlignment="Center" Text="{Binding LoginName,FallbackValue=admin}"></TextBlock>
            <Button Margin="0,0,0,10" Background="SteelBlue" Content="退出登录" Width="220" Height="55" Foreground="WhiteSmoke" FontSize="22" HorizontalAlignment="Stretch" Click="tcdl"></Button>
        </StackPanel>
    </Grid>
</Window>
