久久久久久久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>

                          • 主站蜘蛛池模板: 亚洲国产aⅴ成人精品无吗 国产精品永久在线观看 | 国产亚洲高清视频 | 久久久亚洲成人 | 91极品欧美视频 | 精品国产高清一区二区三区 | 麻豆视频在线免费看 | 精品国产乱码久久久久久影片 | av在线播放不卡 | 成人在线视频免费观看 | 国产xxxx岁13xxxxhd | 九九久久久久久 | 久久另类视频 | 亚洲精品片 | 色一情一乱一伦一区二区三区 | 久久久久资源 | 国产成人精品一区二区三区网站观看 | 黄视频网站在线 | 久久电影一区 | 精品国产一区二区三区性色av | 久久久91精品国产一区二区三区 | 九九九久久国产免费 | 亚洲一区二区视频在线观看 | 在线观看精品视频网站 | 午夜精品久久 | 亚洲视频一区二区三区 | 中文在线一区 | 一区二区三区视频在线 | 黄色a视频 | 综合久久综合久久 | 日批的视频| 一级毛片色一级 | 亚洲精品自在在线观看 | 久久久久一区二区 | 国产精品一区二区久久 | 美女一级毛片 | 日本不卡一区二区三区 | 国产乱码久久久久久 | 成人免费在线 | 成人在线视频一区 | 黄色成人国产 | www视频在线观看 |