-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
CustomSizeSwipeViewGallery.xaml
67 lines (67 loc) · 2.77 KB
/
CustomSizeSwipeViewGallery.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
<?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.GalleryPages.SwipeViewGalleries.CustomSizeSwipeViewGallery"
Title="Custom Size SwipeView">
<ContentPage.Content>
<Grid>
<SwipeView>
<SwipeView.LeftItems>
<SwipeItemView>
<Grid
BackgroundColor="LightPink"
WidthRequest="200">
<Label
HorizontalOptions="Center"
VerticalOptions="Center"
Text="This is the LefItems Content"
Margin="12"/>
</Grid>
</SwipeItemView>
</SwipeView.LeftItems>
<SwipeView.RightItems>
<SwipeItem
IconImageSource="calculator.png"
Text="Test"
BackgroundColor="Red" />
<SwipeItemView>
<StackLayout
BackgroundColor="LightSteelBlue"
WidthRequest="200">
<Label
Text="This is the RightItems Content"/>
<Button
Text="Test Click from RightItems"
Clicked="OnRightItemsClicked"/>
</StackLayout>
</SwipeItemView>
</SwipeView.RightItems>
<SwipeView.TopItems>
<SwipeItemView>
<StackLayout
BackgroundColor="LightSkyBlue"
HeightRequest="100">
<Label
Text="This is the TopItems Content"
Margin="12"/>
<Button
Text="Click me!"
Clicked="OnButtonClicked"/>
</StackLayout>
</SwipeItemView>
</SwipeView.TopItems>
<Grid
BackgroundColor="LightGreen">
<StackLayout>
<Label
Text="This is the SwipeView Content"/>
<Button
Text="Test Click from Content"
Clicked="OnContentClicked"/>
</StackLayout>
</Grid>
</SwipeView>
</Grid>
</ContentPage.Content>
</ContentPage>