-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
27 lines (25 loc) · 1.11 KB
/
MainPage.xaml
File metadata and controls
27 lines (25 loc) · 1.11 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:SwipeView"
x:Class="SwipeView.MainPage"
x:DataType="{x:Type vm:ViewModel}">
<CollectionView ItemsSource="{Binding Tracklist}">
<CollectionView.ItemTemplate>
<DataTemplate>
<SwipeView>
<SwipeView.LeftItems>
<SwipeItem Text="Shortlist" BackgroundColor="Green"/>
</SwipeView.LeftItems>
<SwipeView.RightItems>
<SwipeItems>
<SwipeItem Text="More" BackgroundColor="LightGrey"/>
<SwipeItem Text="Remove" BackgroundColor="Red" />
</SwipeItems>
</SwipeView.RightItems>
<Label Text="{Binding .}" />
</SwipeView>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>