-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue10482.xaml
36 lines (36 loc) · 2.25 KB
/
Issue10482.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8" ?>
<controls:TestContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.Issues.Issue10482"
Title="Issue 10482">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackLayout Orientation="Vertical" Spacing="5" Grid.Row="0" VerticalOptions="Center">
<Label x:Name="Label" LineBreakMode="WordWrap" Text="Switch between linear and grid layouts. If layouts appear as expected with proper spacing between items, the test passes." HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
<Button AutomationId="Button5354" Text="Switch to grid layout" HorizontalOptions="Center" VerticalOptions="Center" Clicked="OnButtonLayoutClicked"/>
</StackLayout>
<StackLayout Grid.Row="1">
<Label x:Name="Label2" LineBreakMode="WordWrap" Text="After change the CollectionView ItemsLayout, just verify that everything continues working as expected." HorizontalTextAlignment="Center" VerticalTextAlignment="Center" />
<Button AutomationId="Button5355" Text="Scroll To (10)" HorizontalOptions="Center" VerticalOptions="Center" Clicked="OnScrollButtonClicked" />
</StackLayout>
<CollectionView AutomationId="CollectionView5354" Grid.Row="2" ItemsSource="{Binding Items}">
<CollectionView.ItemsLayout>
<LinearItemsLayout Orientation="Vertical" ItemSpacing="5"/>
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<StackLayout Orientation="Vertical" Spacing="10" BackgroundColor="Beige" Padding="10">
<Image Source="{Binding Source}"/>
<Label Text="{Binding Text}" HorizontalTextAlignment="Center" AutomationId="{Binding AutomationId}"/>
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</Grid>
</controls:TestContentPage>