maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla32842.xaml

42 строки
1.5 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.Controls.Issues.Bugzilla32842">
<StackLayout VerticalOptions="Fill">
<Label x:Name="Instructions" Text="Tap on a box in the list below. The Box Taps number should equal 1 and the List Item Selections number should equal 0. If either number is incorrect, this test has failed."></Label>
<ListView x:Name="MainList" VerticalOptions="Fill">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" Padding="5" HeightRequest="75" BackgroundColor="Red">
<BoxView Color="Teal" WidthRequest="75" HeightRequest="75">
<BoxView.GestureRecognizers>
<TapGestureRecognizer
Tapped="BoxTapped"
NumberOfTapsRequired="1"/>
</BoxView.GestureRecognizers>
</BoxView>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<StackLayout Orientation="Horizontal">
<Label Text="">List Item Selections: </Label>
<Label x:Name="ListResults" Text=""></Label>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="">Box Taps: </Label>
<Label x:Name="BoxResults" Text=""></Label>
</StackLayout>
</StackLayout>
</ContentPage>