日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
WPF頁面跳轉(zhuǎn)實(shí)現(xiàn)方法詳解

WPF頁面跳轉(zhuǎn)在實(shí)際程序開發(fā)中是經(jīng)常會(huì)被用到的一個(gè)功能需求。在實(shí)現(xiàn)WPF頁面跳轉(zhuǎn)這一功能的時(shí)候,可以分為兩種情況,分別為:前臺(tái)跳轉(zhuǎn)和后臺(tái)跳轉(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)之前臺(tái)轉(zhuǎn):

  1. < TextBlock FontSize="24" 
    TextWrapping="Wrap" 
    Margin="0,0,0,-19.998"> 
  2. < Hyperlink x:Name="LnkPre"
     NavigateUri="Page2.xaml" 
    Foreground="Black"> 
  3. Enter Page2  
  4. < /Hyperlink> 
  5. < /TextBlock> 

WPF頁面跳轉(zhuǎn)之后臺(tái)轉(zhuǎn):

 
 
 
  1. NavigationService.GetNaviga
    tionService(this).Navigate
    (new Uri("Page2.xaml", 
    UriKind.Relative));  
  2. NavigationService.GetNavi
    gationService(this).GoForward();
    向后轉(zhuǎn)  
  3. NavigationService.GetNavi
    gationService(this).GoBack(); 
     向前轉(zhuǎn)  
  4. if (Application.Current.
    Properties["TaskResult"] 
    == null) return;  
  5. bool taskResult = (bool)
    Application.Current.Properties
    ["TaskResult"];  
  6. if (!taskResult) return;  
  7. // If a task happened, 
    display task data  
  8. string taskData = (string)
    Application.Current.Properties
    ["TaskData"];  
  9. if (taskData == null) return;  
  10. // "End" the task be removing 
    state associated with   
  11. // its existence  
  12. Application.Current.Properties
    ["TaskResult"] = null;  
  13. Application.Current.Properties
    ["TaskData"] = null; 

網(wǎng)站題目:WPF頁面跳轉(zhuǎn)實(shí)現(xiàn)方法詳解
標(biāo)題網(wǎng)址:http://www.5511xx.com/article/dpjohpp.html