73 lines
2.9 KiB
XML
73 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="RustTools.Views.HomePage"
|
|
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:local1="using:Windows.ApplicationModel.Contacts"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
<ScrollView HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<FlipView
|
|
x:Name="Gallery"
|
|
Height="270"
|
|
ItemsSource="{x:Bind Pictures}">
|
|
<FlipView.ItemTemplate>
|
|
<DataTemplate x:DataType="x:String">
|
|
<Image Source="{x:Bind Mode=OneTime}" />
|
|
</DataTemplate>
|
|
</FlipView.ItemTemplate>
|
|
</FlipView>
|
|
<PipsPager
|
|
x:Name="FlipViewPipsPager"
|
|
Margin="0,12,0,0"
|
|
HorizontalAlignment="Center"
|
|
NumberOfPages="{x:Bind Pictures.Count}"
|
|
SelectedPageIndex="{x:Bind Path=Gallery.SelectedIndex, Mode=TwoWay}" />
|
|
|
|
<RelativePanel>
|
|
<TextBlock Style="{StaticResource TitleTextBlockStyle}" Text="随机推荐" />
|
|
<AppBarButton
|
|
Icon="Refresh"
|
|
Label="刷新"
|
|
RelativePanel.AlignRightWithPanel="True" />
|
|
</RelativePanel>
|
|
<ListView
|
|
IsItemClickEnabled="True"
|
|
ItemsSource="{x:Bind conns}"
|
|
SelectionMode="None">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Grid.Column="0"
|
|
FontSize="20"
|
|
Text="{Binding FirstName}" />
|
|
<TextBlock Grid.Column="1" Text="{Binding LastName}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
|
|
<RelativePanel>
|
|
<TextBlock Style="{StaticResource TitleTextBlockStyle}" Text="最新发布" />
|
|
<AppBarButton
|
|
Icon="Refresh"
|
|
Label="刷新"
|
|
RelativePanel.AlignRightWithPanel="True" />
|
|
</RelativePanel>
|
|
<ListView
|
|
Grid.Row="2"
|
|
IsItemClickEnabled="True"
|
|
SelectionMode="None" />
|
|
</StackPanel>
|
|
</ScrollView>
|
|
</Page>
|