コード例 #1
0
        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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 /// <summary>
 /// Creates an instance of StackNavigationFrame class.
 /// </summary>
 public StackNavigationFrame(IFrameStyler styler = null)
 {
     this.dispatcher = Dispatcher.CurrentDispatcher;
     this.styler = styler;
     this.Initialize();
 }
コード例 #4
0
 /// <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();
 }