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

  1. <small id='xl8q5'></small><noframes id='xl8q5'>

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

      <bdo id='xl8q5'></bdo><ul id='xl8q5'></ul>
      <legend id='xl8q5'><style id='xl8q5'><dir id='xl8q5'><q id='xl8q5'></q></dir></style></legend>
    1. Windows Phone 8 頁面之間的導航問題

      Windows Phone 8 navigation issue between pages(Windows Phone 8 頁面之間的導航問題)
          • <bdo id='b3y56'></bdo><ul id='b3y56'></ul>
          • <small id='b3y56'></small><noframes id='b3y56'>

              <legend id='b3y56'><style id='b3y56'><dir id='b3y56'><q id='b3y56'></q></dir></style></legend>
                  <tbody id='b3y56'></tbody>
                <tfoot id='b3y56'></tfoot>
                <i id='b3y56'><tr id='b3y56'><dt id='b3y56'><q id='b3y56'><span id='b3y56'><b id='b3y56'><form id='b3y56'><ins id='b3y56'></ins><ul id='b3y56'></ul><sub id='b3y56'></sub></form><legend id='b3y56'></legend><bdo id='b3y56'><pre id='b3y56'><center id='b3y56'></center></pre></bdo></b><th id='b3y56'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='b3y56'><tfoot id='b3y56'></tfoot><dl id='b3y56'><fieldset id='b3y56'></fieldset></dl></div>
                本文介紹了Windows Phone 8 頁面之間的導航問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有一個帶有登錄過程的 Windows 手機應用程序,該登錄過程訪問外部 API.登錄按鈕的控制器最初運行了一些立即導航到儀表板頁面的代碼:

                I have a windows phone app with a login process, that login process accesses an external API. The controller for the login button originally ran some code that instantly navigated to the dashboard page:

                    private void LogInButton_Click(object sender, RoutedEventArgs e)
                    {
                        ...
                
                        App.RootFrame.Navigate(new Uri("/Interface.xaml", UriKind.RelativeOrAbsolute));
                    }
                

                這很好用!

                后來,我認為最好實現與 api 的實際連接,檢查用戶詳細信息是否正確,然后重定向到儀表板.為簡潔起見,我已經刪除了 api 部分,但是假設這個函數作為 Action 委托 在各處被傳遞,然后在它的正確位置(控制器)被調用...

                Later on, I thought it best to implement the actual connection to the api, check if the user details are correct and on that, redirect to the dashboard. for brevity I have taken out the api parts, but let's say this function gets passed all over the place as an Action delegate before being called in it's rightful place, the controller..

                    ...
                    // This method is also located in the controller class, but it is called by another class
                    public void LoadDashboard( DataUpdateState data )
                    {
                        //data.AsyncResponse
                        App.RootFrame.Navigate(new Uri("/Interface.xaml", UriKind.RelativeOrAbsolute));
                    }
                

                問題是,導航方法現在不再起作用,它會在 RootFrame_NavigationFailed 上觸發調試中斷.

                The thing is, the navigation method now no longer works, it fires a debug break on RootFrame_NavigationFailed.

                我在這里不明白什么?

                有沒有辦法找出它在 App 類中加載導航失敗方法的原因

                Is there a way of finding out just why it loaded the navigation failed method in the App class

                推薦答案

                您可以在導航失敗事件的 NavigationFailedEventArgs 中獲取更多詳細信息(在 Exception 參數中).

                You can get more detail in the NavigationFailedEventArgs of the navigation failed event (in the Exception parameter).

                最可能的原因是您嘗試從非 ui 線程調用 Navigate.如果是這種情況,只需使用調度程序在 ui 線程上調度它:

                The most probable cause is that you are try to call Navigate from a non ui thread. If that the case just use a dispatcher to dispatch it on the ui thread:

                Deployment.Current.Dispatcher.BeginInvoke(() =>
                            {
                        App.RootFrame.Navigate(new Uri("/Interface.xaml", UriKind.RelativeOrAbsolute));
                
                            });
                

                這篇關于Windows Phone 8 頁面之間的導航問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

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

                            <tbody id='f7LuP'></tbody>
                        • <small id='f7LuP'></small><noframes id='f7LuP'>

                          主站蜘蛛池模板: 国产精品国产精品国产专区不片 | 亚洲视频在线观看一区 | 成人黄性视频 | 婷婷伊人网 | 久久av网 | 一区二区三区视频在线观看 | 欧美一区二区视频在线观看 | 伊人久久久 | 欧美国产日韩一区二区 | 日韩一区二区中文字幕 | av网址在线播放 | 日本福利视频 | 久久国产免费 | 97国产超碰| 国产午夜影院 | 国产无遮挡又黄又爽免费网站 | 真实的国产乱xxxx在线 | 成人在线免费av | 91精品国产日韩91久久久久久 | 国产亚洲视频在线观看 | 日韩在线视频一区二区三区 | 成人性色生活片 | 久久不雅视频 | 国产精品美女久久久久av爽 | 国产九九热 | 精品欧美日韩 | 欧美日韩综合在线 | 一区二区三区四区在线视频 | 少妇综合| 日韩在线观看 | 国产在线中文字幕 | 久久人人爽 | 高清一区二区 | 国产小视频在线 | 亚洲va韩国va欧美va精品 | 一级黄色免费看 | 国产传媒一区二区 | 欧美视频一二三区 | 欧洲黄色网 | 日韩天堂在线 | 国产欧美精品一区二区 |