WIn_RustTools/RustTools/Views/ListViewPage.xaml

30 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-07-23 12:23:55 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<Page
x:Class="RustTools.Views.ListViewPage"
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"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<Page.Resources>
<DataTemplate x:Key="ContactListViewTemplate" x:DataType="local:HomePage">
<TextBlock
Margin="0,5,0,5"
x:Phase="1"
Text="{x:Bind Name}" />
</DataTemplate>
</Page.Resources>
<Grid>
<ListView
x:Name="BaseExample"
Width="350"
Height="400"
BorderBrush="{ThemeResource SystemControlForegroundBaseMediumLowBrush}"
ItemTemplate="{StaticResource ContactListViewTemplate}" />
</Grid>
</Page>