135 lines
5.9 KiB
XML
135 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="RustTools.Views.UserPage"
|
|
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"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:styles="using:RustTools.Styles"
|
|
xmlns:themes="using:RustTools.Themes"
|
|
xmlns:viewmodels="using:RustTools.Views"
|
|
d:DataContext="{d:DesignInstance Type=viewmodels:UserPage}"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Name="view">
|
|
<Grid Name="gridview" Visibility="Collapsed">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="110" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.Column="0"
|
|
Padding="9,9,26,9"
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
CornerRadius="10">
|
|
<Border.ContextFlyout>
|
|
<MenuFlyout>
|
|
<MenuFlyoutItem Click="MenuFlyoutItemLogout_Click" Text="退出登陆" />
|
|
</MenuFlyout>
|
|
</Border.ContextFlyout>
|
|
|
|
|
|
<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">
|
|
<Image Name="headIcon" Source="{Binding userInfo.HeadIcon}" />
|
|
</Border>
|
|
<StackPanel Grid.Column="1" Margin="16,0,0,0">
|
|
<TextBlock
|
|
Name="userName"
|
|
Margin="0,9,0,0"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="{Binding userInfo.UserName}" />
|
|
<TextBlock
|
|
Name="introduce"
|
|
Margin="0,6,0,0"
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
Text="{Binding userInfo.Introduce}" />
|
|
</StackPanel>
|
|
<themes:ButtonIcon Grid.Column="2" Glyph="" />
|
|
</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">
|
|
|
|
<styles:TitleSubtitleControl
|
|
x:Name="followerText"
|
|
Style="{StaticResource TitleSubtitleControlStyle}"
|
|
SubtitleText="关注"
|
|
TitleText="{Binding userInfo.Follower}" />
|
|
<Rectangle
|
|
Width="1"
|
|
Height="10"
|
|
Margin="16,0,16,0"
|
|
VerticalAlignment="Center"
|
|
Fill="Gray" />
|
|
|
|
<styles:TitleSubtitleControl
|
|
Name="fansText"
|
|
Style="{StaticResource TitleSubtitleControlStyle}"
|
|
SubtitleText="粉丝"
|
|
TitleText="{Binding userInfo.Fans}" />
|
|
<Rectangle
|
|
Width="1"
|
|
Height="10 "
|
|
Margin="16,0,16,0"
|
|
VerticalAlignment="Center"
|
|
Fill="Gray" />
|
|
<styles:TitleSubtitleControl
|
|
Name="praiseText"
|
|
Style="{StaticResource TitleSubtitleControlStyle}"
|
|
SubtitleText="获赞"
|
|
TitleText="{Binding userInfo.Praise}" />
|
|
</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>
|
|
</Grid>
|
|
</Page>
|