WIn_RustTools/RustTools/Views/UserPage.xaml

135 lines
5.9 KiB
Plaintext
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8" ?>
2024-07-15 05:22:53 +00:00
<Page
x:Class="RustTools.Views.UserPage"
2024-07-14 11:24:10 +00:00
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:local="using:RustTools.Views"
2024-07-14 11:24:10 +00:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:styles="using:RustTools.Styles"
2024-08-15 01:40:33 +00:00
xmlns:themes="using:RustTools.Themes"
2024-08-16 05:15:18 +00:00
xmlns:viewmodels="using:RustTools.Views"
d:DataContext="{d:DesignInstance Type=viewmodels:UserPage}"
mc:Ignorable="d">
2024-07-14 11:24:10 +00:00
2024-08-16 05:15:18 +00:00
<Grid Name="view">
2024-08-13 13:59:14 +00:00
<Grid Name="gridview" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="110" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid>
2024-08-13 13:59:14 +00:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Border
Grid.Column="0"
Padding="9,9,26,9"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
CornerRadius="10">
2024-08-16 05:15:18 +00:00
<Border.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Click="MenuFlyoutItemLogout_Click" Text="退出登陆" />
</MenuFlyout>
</Border.ContextFlyout>
2024-08-13 13:59:14 +00:00
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Border
Grid.Column="0"
Width="86"
Height="86"
Background="BlanchedAlmond"
CornerRadius="16">
2024-08-16 05:15:18 +00:00
<Image Name="headIcon" Source="{Binding userInfo.HeadIcon}" />
2024-08-13 13:59:14 +00:00
</Border>
<StackPanel Grid.Column="1" Margin="16,0,0,0">
<TextBlock
2024-08-16 05:15:18 +00:00
Name="userName"
2024-08-13 13:59:14 +00:00
Margin="0,9,0,0"
Style="{StaticResource TitleTextBlockStyle}"
2024-08-16 05:15:18 +00:00
Text="{Binding userInfo.UserName}" />
2024-08-13 13:59:14 +00:00
<TextBlock
2024-08-16 05:15:18 +00:00
Name="introduce"
2024-08-13 13:59:14 +00:00
Margin="0,6,0,0"
Style="{StaticResource BodyTextBlockStyle}"
2024-08-16 05:15:18 +00:00
Text="{Binding userInfo.Introduce}" />
2024-08-13 13:59:14 +00:00
</StackPanel>
2024-08-16 05:15:18 +00:00
<themes:ButtonIcon Grid.Column="2" Glyph="&#xE70F;" />
2024-08-13 13:59:14 +00:00
</Grid>
</Border>
<Border
Grid.Column="1"
Margin="16,0,0,0"
Padding="30,9,30,9"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
CornerRadius="10">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
2024-08-13 13:59:14 +00:00
<styles:TitleSubtitleControl
2024-08-16 05:15:18 +00:00
x:Name="followerText"
2024-08-13 13:59:14 +00:00
Style="{StaticResource TitleSubtitleControlStyle}"
SubtitleText="关注"
2024-08-16 05:15:18 +00:00
TitleText="{Binding userInfo.Follower}" />
2024-08-13 13:59:14 +00:00
<Rectangle
Width="1"
Height="10"
Margin="16,0,16,0"
VerticalAlignment="Center"
Fill="Gray" />
2024-07-14 11:24:10 +00:00
2024-08-13 13:59:14 +00:00
<styles:TitleSubtitleControl
2024-08-16 05:15:18 +00:00
Name="fansText"
2024-08-13 13:59:14 +00:00
Style="{StaticResource TitleSubtitleControlStyle}"
SubtitleText="粉丝"
2024-08-16 05:15:18 +00:00
TitleText="{Binding userInfo.Fans}" />
2024-08-13 13:59:14 +00:00
<Rectangle
Width="1"
Height="10 "
Margin="16,0,16,0"
VerticalAlignment="Center"
Fill="Gray" />
<styles:TitleSubtitleControl
2024-08-16 05:15:18 +00:00
Name="praiseText"
2024-08-13 13:59:14 +00:00
Style="{StaticResource TitleSubtitleControlStyle}"
SubtitleText="获赞"
2024-08-16 05:15:18 +00:00
TitleText="{Binding userInfo.Praise}" />
2024-08-13 13:59:14 +00:00
</StackPanel>
</Border>
</Grid>
<Pivot Grid.Row="1" Grid.Column="0">
<PivotItem Header="模组">
<TextBlock Text="这里是你全部发布的模组" />
</PivotItem>
<PivotItem Header="动态">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="这里是你全部发布的动态" />
<Button
Grid.Row="1"
Grid.Column="1"
Margin="16,16,0,16"
HorizontalAlignment="Right"
Content="我要发布动态" />
</Grid>
</PivotItem>
</Pivot>
</Grid>
2024-07-14 11:24:10 +00:00
</Grid>
</Page>