• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Navigation.NavigationEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Navigation.NavigationEventArgs的典型用法代码示例。如果您正苦于以下问题:C# NavigationEventArgs类的具体用法?C# NavigationEventArgs怎么用?C# NavigationEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NavigationEventArgs类属于System.Windows.Navigation命名空间,在下文中一共展示了NavigationEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnNavigatedTo

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            plan = GetSeletcedPlan();

            bookService = BookService.getInstance();

            List<string> pl = new List<string>() { "高", "中", "低" };
            this.prioritylist.ItemsSource = pl;

            this.prioritylist.SelectedItem = plan.Priority;

            this.bookname.Text = plan.Title;
            //this.bookname.IsEnabled = false;
            this.bookname.IsReadOnly = true;
            this.bookname.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0));

            if (flag)
            {
                this.datePicker.Value = DateTime.Parse(plan.DatePicker);
                this.timepicker.Value = DateTime.Parse(plan.RingTime);
                flag = false;
            }

            this.detail.Text = plan.Detail;

            this.toggle.IsChecked = plan.IsReminder;

            isRemind = plan.IsReminder;
        }
开发者ID:binarywizard,项目名称:WP8Project,代码行数:31,代码来源:EditReadingPlan.xaml.cs


示例2: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     string localvalue;
     if(NavigationContext.QueryString.TryGetValue("parameter",out localvalue))
         name_of_the_person = localvalue;
 }
开发者ID:Rushyendher,项目名称:Virtual-Maps,代码行数:7,代码来源:ContactInfo.xaml.cs


示例3: OnNavigatedFrom

 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (e.Content is Settings)
         (e.Content as Settings).PasswordsUpdated += PasswordPage_PasswordsUpdated;
     base.OnNavigatedFrom(e);
     
 }
开发者ID:astmus,项目名称:PassKeeper,代码行数:7,代码来源:PasswordPage.xaml.cs


示例4: OnNavigatedTo

        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            if (cancelled)
                return;

            _database = Cache.Database;
            if (_database == null)
            {
                this.BackToDBs();
                return;
            }

            string id;
            var queries = NavigationContext.QueryString;

            if (queries.TryGetValue("entry", out id))
                _entry = _database.GetEntry(id);
            else
            {
                id = queries["group"];
                _group = _database.GetGroup(id);
            }

            _target = _database.Root;
            Refresh();
        }
开发者ID:oldlaurel,项目名称:WinPass,代码行数:27,代码来源:MoveTarget.xaml.cs


示例5: OnNavigatedTo

 /*
  * События страницы
  */
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (!poiselectionViewModel.IsDataLoaded)
     {
         DataContext = LoadPoiSelectionData();
     }
 }
开发者ID:KiraariK,项目名称:WaypointProject,代码行数:10,代码来源:PoiSelectionPage.xaml.cs


示例6: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     App currentApp = (App)Application.Current;
     this.cityBox.Text = currentApp.Travel.Car.getFuelConsumptionForRouteType(Libs.ChangeRouteTypeTravelEvent.RouteTypes.citi).ToString();
     this.mixedBox.Text = currentApp.Travel.Car.getFuelConsumptionForRouteType(Libs.ChangeRouteTypeTravelEvent.RouteTypes.mixed).ToString();
     this.hwBox.Text = currentApp.Travel.Car.getFuelConsumptionForRouteType(Libs.ChangeRouteTypeTravelEvent.RouteTypes.hw).ToString();
 }
开发者ID:atomicus,项目名称:wpaxi,代码行数:7,代码来源:FuelConsumption.xaml.cs


示例7: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     var contextIndex = int.Parse(NavigationContext.QueryString["context"]);
     var repoName = NavigationContext.TryGetStringKey("repo");
     ViewModel.ContextIndex = contextIndex;
     ViewModel.RepoName = repoName;
 }
开发者ID:quandtm,项目名称:Milestone,代码行数:7,代码来源:AddIssueView.xaml.cs


示例8: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (ApiHelper.UserIsLoggedIn())
     {
         NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
     }
 }
开发者ID:nforss,项目名称:SujutWP8,代码行数:7,代码来源:Login.xaml.cs


示例9: Browser_Navigated

 private void Browser_Navigated(object sender, NavigationEventArgs e)
 {
     if (e.NavigationMode == NavigationMode.New)
       {
     _browserHistoryLength++;
       }
 }
开发者ID:chenkai,项目名称:PhoneGap-Multi-Page-Navigate-,代码行数:7,代码来源:BackButtonHandler.cs


示例10: OnNavigatedTo

        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            _moved = false;

            if (cancelled)
            {
                _moved = true;
                return;
            }

            SourceCapabilityUpdater.Update();

            if (AppSettings.Instance.AllowAnalytics == null)
            {
                _moved = true;
                this.NavigateTo<AnalyticsSettings>();
                return;
            }

            Cache.Clear();

            var checkTileOpen = e.NavigationMode !=
                NavigationMode.Back;
            RefreshDbList(checkTileOpen);
        }
开发者ID:AFPass,项目名称:7Pass,代码行数:26,代码来源:MainPage.xaml.cs


示例11: OnNavigatedFrom

 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     CallbackManager.currentPage = null;
     GC.Collect();
     GC.WaitForPendingFinalizers();
 }
开发者ID:Jesn,项目名称:MangGuoTv,代码行数:7,代码来源:MoreChannelInfo.xaml.cs


示例12: OnNavigatedTo

        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            //string id = "";
            string id = string.Empty;
            if (NavigationContext.QueryString.TryGetValue("id", out id))
            {
                System.Diagnostics.Debug.WriteLine("ID de la pieza: " + id);
            }

            HttpClient client = new HttpClient();
            string json = await client.GetStringAsync(new Uri("http://museosapp.azurewebsites.net/Piezas/"+id));
            _piezas = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Piezas>>(json);

            //Piezas piezas = NavigateServiceExtends.GetNavigationData(NavigationService) as Piezas;



            //System.Diagnostics.Debug.WriteLine("PIEZAAAAAAA: " + piezas.descripcion);
            //piezas.descripcion;
            //Ésta línea trae toda la información del museo que se ha seleccionado en otro xaml.
            // Y la muestra en el xaml actual.


            //this.DataContext = piezas;

            ElementosQR.ItemsSource = _piezas;
            loadPieza.Visibility = Visibility.Collapsed;
            txtCargando.Visibility = Visibility.Collapsed;
        }
开发者ID:casablancas,项目名称:MuseosApp,代码行数:31,代码来源:InfoQR.xaml.cs


示例13: OnNavigatedTo

		// Load data for the ViewModel Items
		protected override async void OnNavigatedTo(NavigationEventArgs e)
		{
			if (!ViewModel.IsSignedIn)
			{
				await ViewModel.TryLoginAsync();
			}

			if (ContentPanorama.SelectedItem == RecentReadingItem && !ViewModel.IsRecentDataLoaded)
			{
				await ViewModel.UpdateRecentViewAsync();
			}
			else if (ContentPanorama.SelectedItem == SeriesIndexItem && !ViewModel.IsIndexDataLoaded)
			{
				await ViewModel.LoadSeriesIndexDataAsync();
			}
			else if (ContentPanorama.SelectedItem == RecommandItem && !ViewModel.IsRecommandLoaded)
			{
				await ViewModel.LoadRecommandDataAsync();
			}
			else if (ContentPanorama.SelectedItem == FavoriteSection && !ViewModel.IsFavoriteLoaded)
			{
				await ViewModel.LoadUserFavouriateAsync();
			}
			//else if (ContentPanorama.SelectedItem == UserRecentSection && !ViewModel.IsUserRecentLoaded)
			//{
			//	await ViewModel.LoadUserRecentAsync();
			//}
		}
开发者ID:fuchu,项目名称:LightNovelClientWindows,代码行数:29,代码来源:MainPage.xaml.cs


示例14: OnNavigatedTo

 // Load data for the ViewModel Items
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (!App.ViewModel.IsDataLoaded)
     {
         App.ViewModel.LoadData();
     }
 }
开发者ID:njlxyaoxinwei,项目名称:SoundBoard,代码行数:8,代码来源:MainPage.xaml.cs


示例15: WebBrowser1_LoadCompleted

 private void WebBrowser1_LoadCompleted(object sender, NavigationEventArgs e)
 {
     if (e.Uri.ToString().IndexOf("access_token", StringComparison.Ordinal) != -1)
     {
         string accessToken = String.Empty;
         int userId = 0;
         var regex = new Regex(@"(?<name>[\w\d\x5f]+)=(?<value>[^\x26\s]+)", RegexOptions.IgnoreCase | RegexOptions.Singleline);
         foreach (Match match in regex.Matches(e.Uri.ToString()))
         {
             if (match.Groups["name"].Value == "access_token")
             {
                 accessToken = match.Groups["value"].Value;
             }
             else if (match.Groups["name"].Value == "user_id")
             {
                 userId = Convert.ToInt32(match.Groups["value"].Value);
             }
         }
         _token = new Token {AccessToken = accessToken, UserId = userId};
         var groupWindow = new GroupWindow();
         groupWindow.AccessToken.Content = _token.AccessToken;
         groupWindow.UserID.Content = _token.UserId;
         groupWindow.Show();
         this.Close();
     }
 }
开发者ID:JoyHood,项目名称:VKparser,代码行数:26,代码来源:MainWindow.xaml.cs


示例16: OnNavigatedTo

        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            if (cancelled)
                return;

            var database = Cache.Database;

            DateTime convertedDate;
            if ((Cache.DbInfo != null) && (Cache.DbInfo.Details.Modified != null))
            {
                convertedDate = DateTime.Parse(Cache.DbInfo.Details.Modified);
                ApplicationTitle.Text = "8Pass - " + Cache.DbInfo.Details.Name + " (" + convertedDate + ")";
            }

            if (database == null)
            {
                this.BackToDBs();
                return;
            }

            if (Cache.DbInfo.Details.Type.ToString() == "OneTime")
                mnuSync.IsEnabled = false;

            _group = GetGroup(database);
            lstHistory.ItemsSource = null;
            pivotGroup.Header = _group.Name;

            ThreadPool.QueueUserWorkItem(_ =>
                ListItems(_group, database.RecycleBin));

            ThreadPool.QueueUserWorkItem(_ =>
                ListHistory(database));
        }
开发者ID:AFPass,项目名称:8Pass,代码行数:34,代码来源:GroupDetails.xaml.cs


示例17: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.NavigationMode == NavigationMode.New)
     {
         var selectedItem = new BaseItemDto();
         if(App.SelectedItem == null)
         {
             string name, id;
             if (NavigationContext.QueryString.TryGetValue("name", out name) &&
                 NavigationContext.QueryString.TryGetValue("id", out id))
             {
                 selectedItem = new BaseItemDto
                                    {
                                        Name = name,
                                        Id = id,
                                        Type = "FolderCollection"
                                    };
             }
         }
         if (App.SelectedItem is BaseItemDto)
         {
             selectedItem = (BaseItemDto) App.SelectedItem;
         }
         DataContext = new FolderViewModel(ViewModelLocator.NavigationService, ViewModelLocator.ConnectionManager)
         {
             SelectedFolder = selectedItem
         };
     }
 }
开发者ID:zardaloop,项目名称:Emby.WindowsPhone,代码行数:30,代码来源:CollectionView.xaml.cs


示例18: OnNavigatedTo

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.NavigationMode == NavigationMode.New)
            {
                XElement article = XElement.Load("Resources/about_program.xml");

                XElement Credits = article.Element("Credits");
                CreditsAbout.Text = Credits.Element("text").Value;

                CreditsCopyright.Text = "\u00A9" + CreditsCopyright.Text;
                CreditsText.Content = "\"" + CreditsText.Content + "\"";

                Version.Text = AppResources.Version + ": " + article.Element("version").Value;

                XElement developer = article.Element("developer");
                Stream stream = Application.GetResourceStream(new Uri(developer.Element("logo").Attribute("src").Value, UriKind.Relative)).Stream;

                BitmapImage bmp = new BitmapImage();
                bmp.SetSource(stream);
                stream.Close();

                DeveloperLogo.Source = bmp;
                DeveloperLogo.Stretch = Stretch.Uniform;
            }
        }
开发者ID:ershovdz,项目名称:MobileCreditBroker,代码行数:27,代码来源:AboutProgramView.xaml.cs


示例19: OnNavigatedTo

 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     photosList.ItemsSource = Photos;
     scrollStateListBox.ItemsSource = Photos;
     LoadDataFromSource();
 }
开发者ID:rahulpnath,项目名称:IncrementalLoadingPhone,代码行数:7,代码来源:MainPage.xaml.cs


示例20: OnNavigatedTo

    protected override async void OnNavigatedTo(NavigationEventArgs e) {

      StreamResourceInfo sri = Application.GetResourceStream(new Uri("DemoImage.jpg", UriKind.Relative));
      var myBitmap = new WriteableBitmap(800, 480);
      img.ImageSource = myBitmap;

      using (var editsession = await EditingSessionFactory.CreateEditingSessionAsync(sri.Stream)) {
        // First add an antique effect 
       editsession.AddFilter(FilterFactory.CreateCartoonFilter(true));


       editsession.AddFilter(FilterFactory.CreateAntiqueFilter());
       // Then rotate the image
       editsession.AddFilter(FilterFactory.CreateFreeRotationFilter(35.0f, RotationResizeMode.FitInside));


        await editsession.RenderToBitmapAsync(myBitmap.AsBitmap());

   
      }
     
      myBitmap.Invalidate();

      base.OnNavigatedTo(e);
    }
开发者ID:rolkun,项目名称:WP8Kochbuch,代码行数:25,代码来源:MainPage.xaml.cs



注:本文中的System.Windows.Navigation.NavigationEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Navigation.NavigationFailedEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Navigation.NavigatingCancelEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap