2015-03-03 52 views
0

當我試圖聲明NavigationContext我在Windows手機收到錯誤8.1下面的代碼在Windows Phone 8的工作,但是當我轉換成的Windows Phone 8.1 NavigationContext不工作

public static string GetFeedbackMailMessage(NavigationContext context) 
{ 
    string VideoTitle = string.Empty; 
    string LinkType = string.Empty; 
    string VideoUrl = string.Empty; 
    string ShowTitle = string.Empty; 
    string FeedbackMessage = string.Empty; 

    context.QueryString.TryGetValue("chno", out VideoTitle); 
    context.QueryString.TryGetValue("LinkType", out LinkType); 
    context.QueryString.TryGetValue("uri", out VideoUrl); 
    context.QueryString.TryGetValue("title", out ShowTitle); 
    if (context.QueryString.TryGetValue("chno", out VideoTitle) && context.QueryString.TryGetValue("LinkType", out LinkType) && context.QueryString.TryGetValue("uri", out VideoUrl) && context.QueryString.TryGetValue("title", out ShowTitle)) 
    { 
     FeedbackMessage = "Movie Name : " + ShowTitle + "\n" + VideoTitle + " \n " + "http://m.youtube.com/watch?v=" + VideoUrl + "\n"; 
    } 
    return FeedbackMessage; 
} 
+0

請檢查下面 鏈接10 http://stackoverflow.com/questions/25633409/windows-phone-8-error-with-navigationcontext-querystring-trygetvalue – 2015-03-03 09:00:09

+0

你得到什麼錯誤? – 2015-03-03 09:34:04

+0

現在,您只能傳遞一個字符串參數,您可以提取並獲取所有這些值。 – vinod8812 2015-03-03 11:40:50

回答

相關問題