예제 #1
0
        public async void ProcessArguments(string arguments, string tileId)
        {
            if (arguments.Contains("TabWasPinnedAt"))
            {
                SetSelectedTab(tileId);
            }
            else
            {
                if (arguments.Contains("DefaultTabTo") && tileId != "App")
                {
                    vm = new ViewModels.BrowserVM(defaultTabUid: tileId);
                }
                else
                {
                    vm = new ViewModels.BrowserVM();
                }

                this.DataContext   = vm;
                AddTab.DataContext = atvm;
                header.InitChrome(App.Current, ApplicationView.GetForCurrentView());
                InitOneBox();
                InitTabs();
                await InitExtensions();
            }
        }
예제 #2
0
        public async void ProcessArguments(string arguments, string tileId) {

            if (arguments.Contains("TabWasPinnedAt")) SetSelectedTab(tileId);
            else {

                if (arguments.Contains("DefaultTabTo") && tileId != "App") vm = new ViewModels.BrowserVM(defaultTabUid: tileId);
                else vm = new ViewModels.BrowserVM(); 

                this.DataContext = vm;
                AddTab.DataContext = atvm;
                header.InitChrome(App.Current, ApplicationView.GetForCurrentView());
                InitOneBox();
                InitTabs();
                await InitExtensions();
            }



        }