av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

WPF頁面跳轉(zhuǎn)實現(xiàn)方法詳解

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):

  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)之后臺轉(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; 

當前題目:WPF頁面跳轉(zhuǎn)實現(xiàn)方法詳解
文章源于:http://uogjgqi.cn/article/dpjohpp.html
掃二維碼與項目經(jīng)理溝通

我們在微信上24小時期待你的聲音

解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流