64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="RustTools.Views.SearchModPage"
|
|
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"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0">
|
|
<Run Text="一共搜索到" />
|
|
<Run Text="{x:Bind ListSearch.Count}" />
|
|
<Run Text="个数据" />
|
|
</TextBlock>
|
|
<ListView
|
|
Name="list"
|
|
Grid.Row="1"
|
|
IsItemClickEnabled="True"
|
|
ItemsSource="{x:Bind ListSearch}"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
SelectionMode="None">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate xmlns:a="using:RustTools.DataList" x:DataType="a:SearchAllList">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.Column="0"
|
|
Width="56"
|
|
Height="56"
|
|
BorderBrush="White"
|
|
BorderThickness="0"
|
|
CornerRadius="9">
|
|
<Border.Background>
|
|
<ImageBrush ImageSource="{Binding Icon}" Stretch="UniformToFill" />
|
|
</Border.Background>
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="10,10,10,10"
|
|
Orientation="Vertical">
|
|
<TextBlock Style="{StaticResource SubtitleTextBlockStyle}" Text="{Binding Title}" />
|
|
<TextBlock
|
|
LineHeight="2"
|
|
MaxLines="2"
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
Text="{Binding Content}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
</Page>
|