/// <summary> /// 这里e的parameter应该是一个Parameters类 /// 其name是title的名字,value是要显示的图片的本地路径 /// </summary> /// <param name="e"></param> protected async override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); if (e == null) { return; } if (!(e.Parameter is Parameters)) { return; } var pair = e.Parameter as Parameters; title = pair.name; String path = pair.value; bmp = new WriteableBitmap(1920, 1080); var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(path)); var file_stream = await file.OpenAsync(FileAccessMode.Read); bmp.SetSource(file_stream); ISimage.Show(bmp, false); TXTBLKimageTitle.Text = title; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); if (e.Parameter == null) { return; } if (!(e.Parameter is MailInfo)) { return; } PRGRSmail.ProgressStart(); var info = e.Parameter as MailInfo; message = await MailUtil.GetMessageAsync(info.MailFolderType, info.Index); try { TXTBLKmailTitle.Text = message.Subject; } catch { } try { WBVWmailBody.NavigateToString(message.HtmlBody); } catch { FindName(nameof(TXTBLKmailBody)); TXTBLKmailBody.Text = message.TextBody; } PRGRSmail.ProgressEnd(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); if ((e.Parameter != null) && (e.Parameter is Type)) { FRAMEholeBox.Navigate(e.Parameter as Type); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); if (e.Parameter != null && e.Parameter is String) { handle_json(e.Parameter as String); show_grade(); } }
public void Show(WriteableBitmap src, Boolean btnVis = true) { this.Visibility = Visibility.Visible; bmp = src; IMG.Source = bmp; BtnVisible = btnVis; STRBDpopin.Begin(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); MailUtil.mailPage = this; await MailUtil.Login(); inboxList = new MailList(); inboxList.DataLoading += InboxLoading; inboxList.DataLoaded += InboxLoaded; LSTVWinbox.ItemsSource = inboxList; }
public void Show(int pid, String pre = "") { this.Visibility = Visibility.Visible; CurPid = pid; STRBDpopin.Begin(); if (!pre.Equals("")) { TXTBXreply.Text = pre; TXTBXreply.SelectionStart = pre.Length; } }
public void ShowMsgPopin(String content, String title = "") { TXTBLKtitle.Height = 25; if (title.Equals("")) { TXTBLKtitle.Height = 0; } grid_GG.Visibility = Visibility.Visible; TXTBLKtitle.Text = title; txt_GG.Text = content; BTN.Visibility = Visibility.Visible; BTN.IsEnabled = true; STRBDpopin.Begin(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { lock (o) { flag = true; } STRBDpopin.Begin(); ChatUtil.chatPage = this; ChatList.DataLoading += ChatList_DataLoading; ChatList.DataLoaded += ChatList_DataLoaded; await ChatList.refresh(); LSTVWchat.ItemsSource = ChatList; ContinuumRefresh(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.SetTitleBar(GRIDtitle); if (e.Parameter is String) { codeList = new CodeList(e.Parameter as String); } else if (e.Parameter is List <String> ) { codeList = new CodeList(e.Parameter as List <String>); } codeList.DataLoaded += DataLoaded; codeList.DataLoading += DataLoading; GRIDVWcode.ItemsSource = codeList; STRBDpopin.Begin(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); if (e.Parameter == null) { return; } if (!(e.Parameter is Parameters)) { return; } Parameters p = e.Parameter as Parameters; TXTBXreceiver.Text = p.name; TXTBXsubject.Text = p.value; }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); Constants.BoxPage.HamburgerVisible = false; if (e.Parameter != null && e.Parameter is LostFoundInfo) { info = e.Parameter as LostFoundInfo; if (info.mine) { BTNdelete.Visibility = Visibility.Visible; } else { BTNdelete.Visibility = Visibility.Collapsed; } Show(); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { if (e.Parameter == null || !(e.Parameter is String) || ((e.Parameter is String) && ((e.Parameter as String) == ""))) { PageMode = EditMode.add; } else { String str = e.Parameter as String; defaultName = str; PageMode = EditMode.edit; TXTBXname.Text = str; TXTBXlocation.Text = CourseUtil.CustomCourses[str].Location; TXTBXname.IsEnabled = false; AddCustomCourseHint.Text = "编辑自选课程"; } InitBlock(); STRBDpopin.Begin(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); SLDradius.Value = Constants.BgBluredLevel; if (Constants.CourseUseElective) { CMBBXcourse.SelectedIndex = 0; } else { CMBBXcourse.SelectedIndex = 1; } if (Constants.CourseUseCustom) { TGcustom.IsOn = true; } else { TGcustom.IsOn = false; } }
public async void Show(ChatListInfo masterInfo) { historyHeight = 0; lock (o) { MasterInfo = masterInfo; flag = false; } this.Visibility = Visibility.Visible; STRBDpopin.Begin(); lock (o) { chatList = new ChatDetailList(masterInfo.UserName); chatList.DataLoading += DataLoading; chatList.DataLoaded += DataLoaded; chatList.NewLoaded += NewDataLoaded; flag = true; } await chatList.LoadMoreHistory(); LSTVWchat.ItemsSource = chatList; ContinuumRefresh(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); Constants.BoxPage.HamburgerVisible = false; if (e.Parameter != null && e.Parameter is HoleInfo) { CurHoleInfo = e.Parameter as HoleInfo; content_panel.DataContext = CurHoleInfo; } if (!(CurHoleInfo.type == HoleInfo.TYPE_IMAGE)) { IMGcontent.Visibility = Visibility.Collapsed; } if (!(CurHoleInfo.type == HoleInfo.TYPE_AUDIO)) { MEvoice.Visibility = Visibility.Collapsed; } else { MEvoice.AudioSource = new Uri(CurHoleInfo.url, UriKind.Absolute); } GetComments(); }
public void Show(List <String> vars) { GRIDroot.Visibility = Visibility.Visible; STRBDpopin.Begin(); Init(vars); }
private void GRIDroot_PointerEntered(object sender, PointerRoutedEventArgs e) { STRBDpopin.Begin(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { InfoUtil.infoPage = this; STRBDpopin.Begin(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); Constants.BoxPage.HamburgerVisible = false; }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); await GetBingToday();//用于在校外环境时调试每日必应 }
protected override void OnNavigatedTo(NavigationEventArgs e) { STRBDpopin.Begin(); PRGRScalendar.ProgressStart(); }
public void popin() { STRBDpopin.Begin(); }