掃二維碼與項目經(jīng)理溝通
我們在微信上24小時期待你的聲音
解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流
WPF頁面跳轉(zhuǎn)在實際程序開發(fā)中是經(jīng)常會被用到的一個功能需求。在實現(xiàn)WPF頁面跳轉(zhuǎn)這一功能的時候,可以分為兩種情況,分別為:前臺跳轉(zhuǎn)和后臺跳轉(zhuǎn)。#t#

創(chuàng)新互聯(lián)公司主營萬山網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app開發(fā)定制,萬山h5成都微信小程序搭建,萬山網(wǎng)站營銷推廣歡迎萬山等地區(qū)企業(yè)咨詢
WPF頁面跳轉(zhuǎn)之前臺轉(zhuǎn):
WPF頁面跳轉(zhuǎn)之后臺轉(zhuǎn):
- NavigationService.GetNaviga
tionService(this).Navigate
(new Uri("Page2.xaml",
UriKind.Relative));- NavigationService.GetNavi
gationService(this).GoForward();
向后轉(zhuǎn)- NavigationService.GetNavi
gationService(this).GoBack();
向前轉(zhuǎn)- if (Application.Current.
Properties["TaskResult"]
== null) return;- bool taskResult = (bool)
Application.Current.Properties
["TaskResult"];- if (!taskResult) return;
- // If a task happened,
display task data- string taskData = (string)
Application.Current.Properties
["TaskData"];- if (taskData == null) return;
- // "End" the task be removing
state associated with- // its existence
- Application.Current.Properties
["TaskResult"] = null;- Application.Current.Properties
["TaskData"] = null;

我們在微信上24小時期待你的聲音
解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流