久久久久久久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毛片 | 亚洲三区在线观看 | 天堂资源最新在线 | 亚洲一区二区电影网 | 综合久| 精品久久香蕉国产线看观看亚洲 | 黄色片av| 久久国产精品网 | 中文字幕在线免费视频 | 一区二区三区四区不卡视频 | 国产98色在线 | 日韩 | 精品一区二区三区不卡 | 美女国产一区 | 91精品久久久久久久久久 | 粉嫩高清一区二区三区 | 四虎成人精品永久免费av九九 | 成人午夜精品一区二区三区 | 超碰97免费在线 | 亚洲精品一区久久久久久 | 中文字幕av在线一二三区 | 一级片在线观看 | 男女爱爱网站 | 欧美精品一区二区三区四区五区 | 91丨九色丨国产在线 | 成人片免费看 | 成人国产精品久久 | 亚洲电影第三页 | 欧美中文字幕一区 | 在线免费观看成人 | 色欧美片视频在线观看 | 在线一区观看 | 国产欧美一区二区久久性色99 | 亚洲精品一区二区另类图片 | 99精品一区 | 91精品国产91久久综合桃花 | 一区二区福利视频 | 国产精品久久久久久久久久久免费看 | 黄色国产在线播放 | 人人叉| 欧美综合国产精品久久丁香 |