Windows 10 UWP Community toolkit is a collection of a helper class, custom controls and Application services. The SlideableListItem Control enables the actions to be triggered by sliding the content left or right.
Create a new Windows 10 UWP project or open your existing project. Right click on your project and select Manage NuGet Packages. Search for Microsoft.Toolkit.UWP.UI.Controls and install it, as shown below-
This will add Microsoft.Toolkit.Uwp.UI.Controls.dll in 'References' of your project, as shown below-

Add the toolkit reference in your XAML pages, using the code, given below-
XAML
xmlns:UWPToolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
Now, open your XAML page and write the code, given below-
- Page.Resources>
- <DataTemplate x:Key="EmailsItemTemplate" >
- <UWPToolkit:SlidableListItem LeftIcon="Add"
- RightIcon="Delete"
- HorizontalAlignment="Stretch"
- RightCommandRequested="SlidableListItem_RightCommandActivated"
- MinWidth="300"
- MaxWidth="800"
- >
- <Grid Background="AliceBlue">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="50"/>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" Background="SkyBlue" x:Name="Checkmark" >
- <SymbolIcon Symbol="Read" Foreground="White" />
- </Grid>
- <TextBlock Grid.Column="1" Text="{Binding Title}" ></TextBlock>
- </Grid>
- </UWPToolkit:SlidableListItem>
- </DataTemplate>
- </Page.Resources>
- <Grid x:Name="Root" Padding="24">
- <ListView x:Name="listView" SelectionMode="None" IsItemClickEnabled="False" HorizontalAlignment="Center" ItemsSource="{x:Bind _items, Mode=OneWay}" ItemTemplate="{StaticResource EmailsItemTemplate}">
- <ListView.ItemContainerStyle>
- <Style TargetType="ListViewItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="Margin" Value="0,1"/>
- </Style>
- </ListView.ItemContainerStyle>
- </ListView>
- </Grid>
Now, go to the code at the backend page and write the code, given below, to list the item.
- private ObservableCollection < Item > _items;
- public MainPage()
- {
- this.InitializeComponent();
- ObservableCollection < Item > items = new ObservableCollection < Item > ();
- items.Add(new Item() {
- Title = "Suresh"
- });
- items.Add(new Item() {
- Title = "Microsoft MVP"
- });
- items.Add(new Item() {
- Title = "C# Corner MVP"
- });
- items.Add(new Item() {
- Title = "Windows 10 UWP"
- });
- _items = items;
- }
- public class Item {
- public string Title {
- get;
- set;
- }
- }
- private void SlidableListItem_RightCommandActivated(object sender, EventArgs e) {}


Thimotey TsanPosted Sep 12, 2016, 11:27 AM
Hi, nice post. I would like to know if we can lock one of the two slide?
Prasanna MuraliPosted Sep 5, 2016, 11:08 AM
Nice post......