-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue11262.xaml
77 lines (77 loc) · 3.52 KB
/
Issue11262.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?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:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:local="clr-namespace:Xamarin.Forms.Controls.Issues"
xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.Issues.Issue11262"
x:Name="Issue11262Page"
Title="Issue 11262">
<Grid
RowSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label
Padding="12"
BackgroundColor="Black"
TextColor="White"
Text="Swipe and remove an item from the list. Without errors, the test has passed."/>
<StackLayout
Grid.Row="1"
BindableLayout.ItemsSource="{Binding Items}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<SwipeView
HeightRequest="80">
<SwipeView.LeftItems>
<SwipeItems
Mode="Reveal"
SwipeBehaviorOnInvoked="Close">
<SwipeItemView
Command="{Binding Source={x:Reference Issue11262Page}, Path=BindingContext.RemoveCommand}"
CommandParameter="{Binding .}"
WidthRequest="80">
<Grid
BackgroundColor="Red"
HorizontalOptions="Fill"
VerticalOptions="Fill">
<Image
Source="coffee.png"
HeightRequest="16"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="16" />
</Grid>
</SwipeItemView>
</SwipeItems>
</SwipeView.LeftItems>
<Grid
BackgroundColor="White"
HeightRequest="60">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.10*" />
<ColumnDefinition Width="0.90*" />
</Grid.ColumnDefinitions>
<Image
Grid.Column="0"
Source="coffee.png"
HeightRequest="16"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="16" />
<Label
Grid.Column="1"
Text="{Binding Title}"
VerticalOptions="Center" />
</Grid>
</SwipeView>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
</Grid>
</controls:TestContentPage>