Beispiel #1
0
        public void AddSwipeItemsButton_Click(object sender, RoutedEventArgs e)
        {
            DefaultSwipeItemsHorizontal.Clear();
            DefaultSwipeItemsVertical.Clear();

            DefaultSwipeItemsHorizontal.Mode = SwipeMode.Reveal;
            DefaultSwipeItemsHorizontal.Add(DefaultSwipeItemHorizontal);

            // Using swipecontrol inside datatemplate prevents us from setting that:
            // Swipecontrol is in horizontal mode, can not add vertical swipe items...
            //DefaultSwipeItemsVertical.Mode = Microsoft.UI.Xaml.Controls.SwipeMode.Reveal;
            //DefaultSwipeItemsVertical.Add(DefaultSwipeItemVertical);

            SwipeItemsChildSum.Text = (DefaultSwipeItemsHorizontal.Count + DefaultSwipeItemsVertical.Count).ToString();
        }
Beispiel #2
0
 public void ClearSwipeItemsButton_Click(object sender, RoutedEventArgs e)
 {
     DefaultSwipeItemsHorizontal.Clear();
     DefaultSwipeItemsVertical.Clear();
     SwipeItemsChildSum.Text = (DefaultSwipeItemsHorizontal.Count + DefaultSwipeItemsVertical.Count).ToString();
 }