зеркало из https://github.com/DeGsoft/maui-linux.git
46 строки
1.4 KiB
XML
46 строки
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ContentPage
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Xamarin.Forms.Xaml.UnitTests.DataTemplate"
|
|
xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests">
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<DataTemplate x:Key="celltemplate">
|
|
<TextCell Text="{Binding}"/>
|
|
</DataTemplate>
|
|
<local:ReverseConverter x:Key="reverseConverter"/>
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
<StackLayout>
|
|
<ListView x:Name="emptyTextCell">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextCell />
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<ListView x:Name="textCell">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextCell Text="{Binding}"/>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<ListView x:Name="fromResource" ItemTemplate="{StaticResource celltemplate}" />
|
|
<ListView x:Name="textCellAccessResource">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextCell Text="{Binding Path=., Converter={StaticResource reverseConverter}}"/>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<ListView x:Name="viewCellAccessResource">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell><Label Text="{Binding Path=., Converter={StaticResource reverseConverter}}"/></ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
</ContentPage> |