Exemple #1
0
 public static void MapSelectedItem(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
 {
     if (itemsView.SelectionMode != SelectionMode.None && itemsView.SelectedItem != null)
     {
         var index = handler.PlatformView.Adaptor.GetItemIndex(itemsView.SelectedItem);
         handler.PlatformView.SelectedItemIndex = index;
     }
 }
 public static void MapSelectionMode(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
 {
 }
Exemple #3
0
 public static void MapSelectionMode(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
 {
     handler.PlatformView.SelectionMode = itemsView.SelectionMode.ToPlatform();
 }
Exemple #4
0
 public static void MapSelectionMode(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
 {
     (handler.Controller as SelectableItemsViewController <TItemsView>)?.UpdateSelectionMode();
 }
Exemple #5
0
        public static void MapItemsSource(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
        {
            ItemsViewHandler <TItemsView> .MapItemsSource(handler, itemsView);

            MapSelectedItem(handler, itemsView);
        }
 public static void MapSelectedItems(SelectableItemsViewHandler <TItemsView> handler, SelectableItemsView itemsView)
 {
     (handler.Controller as SelectableItemsViewController <TItemsView>)?.UpdatePlatformSelection();
 }