public TabsNavigationFrame(IFrameStyler styler = null) { this.styler = styler; #if __ANDROID__ || WINDOWS_PHONE this.navigationService = new NavigationService(this); this.backStack = new Stack<AppercodePage>(); #else this.navigationStacks = new List<StackNavigationFrame>(); #endif this.visualRoot = AppercodeVisualRoot.Instance; this.NativeTabsNavigationFrame(); this.Tabs = new TabBarTabsCollection(); this.Tabs.CollectionChanged += Tabs_CollectionChanged; this.LoadApplicationResourcesFromAssembly(Assembly.GetCallingAssembly()); if (this.styler != null) { this.styler.StyleTabBar(this); } }
/// <summary> /// Creates an instance of <see cref="TabsNavigationFrame" /> class using an implementation of <see cref="IFrameStyler" />. /// </summary> public TabsNavigationFrame(IFrameStyler styler) { this.styler = styler; #if __ANDROID__ || WINDOWS_PHONE this.navigationService = new NavigationService(this); this.backStack = new Stack <AppercodePage>(); #else this.navigationStacks = new List <StackNavigationFrame>(); #endif this.visualRoot = AppercodeVisualRoot.Instance; this.NativeTabsNavigationFrame(); this.Tabs = new TabBarTabsCollection(); this.Tabs.CollectionChanged += Tabs_CollectionChanged; this.LoadApplicationResourcesFromAssembly(Assembly.GetCallingAssembly()); if (this.styler != null) { this.styler.StyleTabBar(this); } }
/// <summary> /// Creates an instance of StackNavigationFrame class. /// </summary> public StackNavigationFrame(IFrameStyler styler = null) { this.dispatcher = Dispatcher.CurrentDispatcher; this.styler = styler; this.Initialize(); }
/// <summary> /// Creates an instance of <see cref="StackNavigationFrame" /> class using an implementation of <see cref="IFrameStyler" />. /// </summary> public StackNavigationFrame(IFrameStyler styler) { this.dispatcher = Dispatcher.CurrentDispatcher; this.styler = styler; this.Initialize(); }