コード例 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (DeviceHelper.IsDesktop)
     {
         TitleBarUc = TitleBarHelper.CustomTitleBar(this.Content);
         TitleBarUc.OnClickBackBtn += (s, ex) =>
         {
             if (Frame.CanGoBack)
             {
                 Frame.GoBack();
             }
         };
     }
 }
コード例 #2
0
 public virtual void OnShow()
 {
     OnShownChanged?.Invoke(this, new ShownArgs()
     {
         Shown = true
     });
     _titleBarControl = TitleBarHelper.CustomTitleBar(this.Content);
     _titleBarControl.OnClickBackBtn += (x, e) =>
     {
         Shown = false;
     };
     //Window.Current.SetTitleBar(this);
     if (DeviceHelper.IsMobile)
     {
         StatusBarHelper.SetUpBlackStatusBar();
     }
     else
     {
         TitleBarHelper.SetUpTitleBarColorForDarkText();
     }
 }