-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue6932.xaml
46 lines (46 loc) · 2.04 KB
/
Issue6932.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
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8" ?>
<controls:TestContentPage xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="Xamarin.Forms.Controls.Issues.Issue6932">
<ContentPage.Resources>
<DataTemplate x:Key="MyIntTemplate">
<Frame Padding="10"
BackgroundColor="Yellow">
<Label Text="{Binding }" />
</Frame>
</DataTemplate>
</ContentPage.Resources>
<Grid RowSpacing="0">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollView VerticalScrollBarVisibility="Never"
HorizontalScrollBarVisibility="Always">
<StackLayout AutomationId="{Binding LayoutAutomationId}" BindableLayout.ItemsSource="{Binding ItemsSource}"
BindableLayout.ItemTemplate="{StaticResource MyIntTemplate}"
Spacing="7"
Padding="10, 5">
<BindableLayout.EmptyView>
<Grid BackgroundColor="Blue" AutomationId="{Binding EmptyViewAutomationId}">
<Label Text="No Results"/>
</Grid>
</BindableLayout.EmptyView>
</StackLayout>
</ScrollView>
<StackLayout BackgroundColor="Green"
Orientation="Horizontal"
Spacing="0"
Grid.Row="1">
<Button Command="{Binding AddItemCommand}"
Text="Add" AutomationId="{Binding AddAutomationId}" />
<Button Command="{Binding RemoveItemCommand}"
Text="Remove" AutomationId="{Binding RemoveAutomationId}" />
<Button Command="{Binding ClearCommand}"
Text="Clear" AutomationId="{Binding ClearAutomationId}" />
</StackLayout>
</Grid>
</controls:TestContentPage>