private static ElementHandler CreateHandler(MC.Element parent, MobileBlazorBindingsRenderer renderer)
 {
     return(parent switch
     {
         MC.ContentPage contentPage => new ContentPageHandler(renderer, contentPage),
         MC.ContentView contentView => new ContentViewHandler(renderer, contentView),
         MC.Label label => new LabelHandler(renderer, label),
         MC.FlyoutPage flyoutPage => new FlyoutPageHandler(renderer, flyoutPage),
         MC.ScrollView scrollView => new ScrollViewHandler(renderer, scrollView),
         MC.ShellContent shellContent => new ShellContentHandler(renderer, shellContent),
         MC.Shell shell => new ShellHandler(renderer, shell),
         MC.ShellItem shellItem => new ShellItemHandler(renderer, shellItem),
         MC.ShellSection shellSection => new ShellSectionHandler(renderer, shellSection),
         MC.TabbedPage tabbedPage => new TabbedPageHandler(renderer, tabbedPage),
         _ => new ElementHandler(renderer, parent),
     });
Пример #2
0
 internal static void MapBarBackground(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #3
0
 internal static void MapCurrentPage(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #4
0
 internal static void MapSelectedItem(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #5
0
 internal static void MapItemTemplate(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #6
0
 internal static void MapItemsSource(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #7
0
 internal static void MapUnselectedTabColor(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #8
0
 internal static void MapBarTextColor(ITabbedViewHandler handler, TabbedPage view)
 {
 }
Пример #9
0
 public static void MapIsSwipePagingEnabled(ITabbedViewHandler handler, TabbedPage view)
 {
     view._tabbedPageManager.UpdateSwipePaging();
 }
Пример #10
0
 internal static void MapCurrentPage(ITabbedViewHandler handler, TabbedPage view)
 {
     view._tabbedPageManager.ScrollToCurrentPage();
 }
Пример #11
0
 internal static void MapSelectedTabColor(ITabbedViewHandler handler, TabbedPage view)
 {
     view._tabbedPageManager.UpdateTabItemStyle();
 }
Пример #12
0
 internal static void MapBarBackgroundColor(ITabbedViewHandler handler, TabbedPage view)
 {
     view._tabbedPageManager.UpdateBarBackgroundColor();
 }