久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='MWWOU'><tr id='MWWOU'><dt id='MWWOU'><q id='MWWOU'><span id='MWWOU'><b id='MWWOU'><form id='MWWOU'><ins id='MWWOU'></ins><ul id='MWWOU'></ul><sub id='MWWOU'></sub></form><legend id='MWWOU'></legend><bdo id='MWWOU'><pre id='MWWOU'><center id='MWWOU'></center></pre></bdo></b><th id='MWWOU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MWWOU'><tfoot id='MWWOU'></tfoot><dl id='MWWOU'><fieldset id='MWWOU'></fieldset></dl></div>
    <tfoot id='MWWOU'></tfoot>
        <bdo id='MWWOU'></bdo><ul id='MWWOU'></ul>
        <legend id='MWWOU'><style id='MWWOU'><dir id='MWWOU'><q id='MWWOU'></q></dir></style></legend>

        <small id='MWWOU'></small><noframes id='MWWOU'>

      1. 處理返回導航 Windows 10 (UWP)

        Handling Back Navigation Windows 10 (UWP)(處理返回導航 Windows 10 (UWP))

          1. <i id='k6Fpf'><tr id='k6Fpf'><dt id='k6Fpf'><q id='k6Fpf'><span id='k6Fpf'><b id='k6Fpf'><form id='k6Fpf'><ins id='k6Fpf'></ins><ul id='k6Fpf'></ul><sub id='k6Fpf'></sub></form><legend id='k6Fpf'></legend><bdo id='k6Fpf'><pre id='k6Fpf'><center id='k6Fpf'></center></pre></bdo></b><th id='k6Fpf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k6Fpf'><tfoot id='k6Fpf'></tfoot><dl id='k6Fpf'><fieldset id='k6Fpf'></fieldset></dl></div>
              <bdo id='k6Fpf'></bdo><ul id='k6Fpf'></ul>
              <tfoot id='k6Fpf'></tfoot>
              <legend id='k6Fpf'><style id='k6Fpf'><dir id='k6Fpf'><q id='k6Fpf'></q></dir></style></legend>

                  <small id='k6Fpf'></small><noframes id='k6Fpf'>

                    <tbody id='k6Fpf'></tbody>
                1. 本文介紹了處理返回導航 Windows 10 (UWP)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在我的 Xaml 頁面中,我有一個框架.

                  In my Xaml Page I've got a Frame.

                  我正在嘗試讓 backButton 事件在框架內導航.

                  I'm trying to have a backButton event to just navigate inside frame .

                  所以我嘗試使用這段代碼

                  so I tried to use this piece of code

                  public MainPage(){
                      this.InitializeComponent();
                      if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) {
                          Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
                      }
                  }
                  private void HardwareButtons_BackPressed(object sender,BackPressedEventArgs e) {
                      if(insideFrame.CanGoBack())insideFrame.GoBack();
                      else  Application.Current.Exit();
                  }
                  

                  但在手機中執行 HardwareButtons_BackPressed 事件后它會關閉應用程序.

                  but In phone after doing HardwareButtons_BackPressed event it close the application.

                  似乎在 MainPage 上運行了一些默認的后退按鈕行為...

                  It seems to running some default back button behavior on MainPage...

                  我該如何解決?在 Windows10 中他們是否添加了新事件來處理返回導航?

                  How can I fix it? And In Windows10 does they add new events to handle back navigation?

                  [更新]

                  現在我發現在 Windows 10 中使用 SystemNavigationManager 比使用 Input.HardwareButtons.BackPressed 更好.

                  Now I found out it's better to Use SystemNavigationManager in Windows 10 instead of Input.HardwareButtons.BackPressed.

                  SystemNavigationManager currentView = SystemNavigationManager.GetForCurrentView();
                  

                  推薦答案

                  您需要通過將 BackPressedEventArgs 的 Handled 屬性設置為 true 來告訴系統您處理了后退按鈕按下.

                  You need to tell the system that you handled the backbutton press by setting the Handled property of the BackPressedEventArgs to true.

                    private void OnHardwareButtonsBackPressed(object sender, BackPressedEventArgs e)
                    {
                          // This is the missing line!
                          e.Handled = true;
                  
                          // Close the App if you are on the startpage
                          if (mMainFrame.CurrentSourcePageType == typeof(Startpage))
                              App.Current.Exit();
                  
                          // Navigate back
                          if (mMainFrame.CanGoBack)
                          {
                              mMainFrame.GoBack();
                          }
                    }
                  

                  這篇關于處理返回導航 Windows 10 (UWP)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)

                  <legend id='ZePDf'><style id='ZePDf'><dir id='ZePDf'><q id='ZePDf'></q></dir></style></legend>

                  <small id='ZePDf'></small><noframes id='ZePDf'>

                      <bdo id='ZePDf'></bdo><ul id='ZePDf'></ul>
                          <tbody id='ZePDf'></tbody>
                            <tfoot id='ZePDf'></tfoot>
                            <i id='ZePDf'><tr id='ZePDf'><dt id='ZePDf'><q id='ZePDf'><span id='ZePDf'><b id='ZePDf'><form id='ZePDf'><ins id='ZePDf'></ins><ul id='ZePDf'></ul><sub id='ZePDf'></sub></form><legend id='ZePDf'></legend><bdo id='ZePDf'><pre id='ZePDf'><center id='ZePDf'></center></pre></bdo></b><th id='ZePDf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZePDf'><tfoot id='ZePDf'></tfoot><dl id='ZePDf'><fieldset id='ZePDf'></fieldset></dl></div>

                          • 主站蜘蛛池模板: 久久综合av | 成人国产精品久久久 | 国产a视频| 国产精品自拍视频网站 | 日日摸日日碰夜夜爽亚洲精品蜜乳 | 日本超碰 | 欧美成人免费在线 | 日韩精品一区二区三区视频播放 | 精品免费视频一区二区 | 欧美成人精品一区 | 欧美一区二区三区免费在线观看 | 国产在线视频一区二区 | 精品在线一区二区三区 | 欧美日韩中文字幕 | 午夜视频在线免费观看 | 看黄在线 | 欧洲国产精品视频 | 日韩毛片在线免费观看 | 拍真实国产伦偷精品 | 欧美日韩成人网 | 欧美成人一级 | 欧美日韩福利视频 | 免费一区在线观看 | 天天躁日日躁xxxxaaaa | 在线视频91| 日韩中文电影 | 大陆一级毛片免费视频观看 | 久久久精品影院 | 日韩在线观看一区 | 毛片99 | 超碰在线亚洲 | 国产成人精品一区二 | 国产视频精品在线观看 | 久久久久久久一区二区三区 | 黄色在线免费观看视频 | 午夜激情一区 | 久久久久亚洲精品 | 在线色网 | 欧美一区二区三区视频 | 91精品国产91久久久久久吃药 | 美日韩视频 |