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

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

    2. <i id='RjP4N'><tr id='RjP4N'><dt id='RjP4N'><q id='RjP4N'><span id='RjP4N'><b id='RjP4N'><form id='RjP4N'><ins id='RjP4N'></ins><ul id='RjP4N'></ul><sub id='RjP4N'></sub></form><legend id='RjP4N'></legend><bdo id='RjP4N'><pre id='RjP4N'><center id='RjP4N'></center></pre></bdo></b><th id='RjP4N'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RjP4N'><tfoot id='RjP4N'></tfoot><dl id='RjP4N'><fieldset id='RjP4N'></fieldset></dl></div>
      <legend id='RjP4N'><style id='RjP4N'><dir id='RjP4N'><q id='RjP4N'></q></dir></style></legend>
    3. <tfoot id='RjP4N'></tfoot>
        <bdo id='RjP4N'></bdo><ul id='RjP4N'></ul>
    4. 如何以 xamarin 形式將一個內容頁面從客戶端項目

      How to navigate one Content page to another Content page from client project (IOS/Android) in xamarin forms?(如何以 xamarin 形式將一個內容頁面從客戶端項目(IOS/Android)導航到另一個內容頁面?) - IT屋-程序員軟件開
      <tfoot id='sA3Er'></tfoot>

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

              <tbody id='sA3Er'></tbody>

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

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

                本文介紹了如何以 xamarin 形式將一個內容頁面從客戶端項目(IOS/Android)導航到另一個內容頁面?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                如何在 xamarin 表單中將一個內容頁面從客戶端項目導航到另一個內容頁面?

                How to navigate one content page to another content page from client project in xamarin forms?

                我已經以不同的方式在每個平臺上實現了推送通知.我需要從當前內容頁面導航到另一個內容.

                I have done implementing push notification in each platform in different way. I need to navigate to another content from current content page.

                我嘗試在 GCMService 的 OnMessage 方法中使用以下代碼.我的問題是第二個導航內容頁面的構造函數被調用并成功調試.但是我的屏幕仍然顯示當前頁面而不顯示第二個導航內容頁面.

                i try to use below code in GCMService's OnMessage method. My Problem is Second navigation content page's constructor are called and debug successfully. but my screen still display current page not to display second navigation content page.

                App.Current.MainPage.Navigation.PushAsync (new SecondNavigationContentPage());
                

                推薦答案

                主頁"必須是導航頁面才能使用推送彈出導航進行導航.你有幾個選擇.

                "Main Page" has to be a navigation page in order to navigate with the push pop navigation. You have a couple of options.

                選項 1:

                用您的新頁面替換 MainPage 并使用內容頁面.

                Swap out MainPage with your new page and use content pages.

                App.Current.MainPage = your new content page
                

                選項2:(可能是更好的選擇)

                Option 2: (Probably the better option)

                使 App.Current.MainPage 成為 NavigationPage 而不是 ContentPage,然后將您的第一個內容頁面推送到它.當您需要轉到第二個內容頁面時,請使用推送導航架構.

                Make App.Current.MainPage a NavigationPage rather than a ContentPage then push your first content page to it. When you need to go to the second content page use the push navigation architecture.

                App.Current.MainPage = new NavigationPage;
                App.Current.MainPage.Navigation.PushAsync(Page1);
                App.Current.MainPage.Navigation.PushAsync(Page2);
                

                文檔:http://developer.xamarin.com/guides/cross-platform/xamarin-forms/controls/pages/

                更新

                請注意,由于這個答案已經出現了更好的導航方式,例如 docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/... app shell routing.

                Note that since this answer much better ways have come along for navigation such as docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/… app shell routing.

                其他選擇是 Prism MVVM 或您自己的視圖模型定位器 prismlibrary.com/docs/viewmodel-locator.html.使用這種內置導航的缺點是它缺少視圖模型來查看模型導航,并且依賴于頁面到頁面,這會導致不必要的視圖耦合以及簡單笨拙的導航.

                Other choices are Prism MVVM or your own view model locator prismlibrary.com/docs/viewmodel-locator.html. The short coming in using this built in navigation is it lacks view model to view model navigation and depends on page to page which causes unwanted coupling of views and just plain clunky navigation.

                這篇關于如何以 xamarin 形式將一個內容頁面從客戶端項目(IOS/Android)導航到另一個內容頁面?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

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

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

                1. <tfoot id='d7XKM'></tfoot>

                        <bdo id='d7XKM'></bdo><ul id='d7XKM'></ul>
                          <tbody id='d7XKM'></tbody>
                      • <small id='d7XKM'></small><noframes id='d7XKM'>

                          主站蜘蛛池模板: 亚洲国产精品久久久久秋霞不卡 | 一区视频 | 在线中文视频 | 精品久久久久久亚洲精品 | 欧美日韩高清免费 | 国产精品区一区二区三区 | www.久久 | 国产精品免费福利 | 国产精品久久久久久久久久免费看 | 97国产精品| 天堂在线中文字幕 | 日操夜操| 欧美日韩综合一区 | 久久国产精品99久久久久 | 欧美性区| 久久精品一 | 亚洲精品视频免费观看 | 久久久久久久国产精品视频 | 精品国产久 | 特黄毛片视频 | 精品福利在线 | 成人综合一区二区 | 亚州中文 | 天天夜夜人人 | 毛片入口| 亚洲永久精品国产 | 国产福利视频导航 | 中文字幕伊人 | 一区二区日韩精品 | 人干人人| 久久久久久看片 | 国产精品高清在线 | 国产欧美在线 | 中国一级特黄毛片大片 | 天天干天天干 | 日韩一区中文字幕 | 日本不卡一区二区三区在线观看 | 国产三级| 亚洲精品成人 | 亚洲成人久久久 | 精品久久久久久久久久 |