2012-09-25 61 views
0

我試圖在我的OOB Silverlight應用程序中更改加載的頁面。 我已經添加了對導航組件的引用,但仍然在導航NavigationService的時候。和ctrl +空格,我看不到任何我應該的方法或屬性。以下是部分代碼:NavigationService在Silverlight中不起作用

void client_LoginCompleted(object sender, LoginCompletedEventArgs e) 
{ 
    if (e.Result) 
    { 
     MessageBox.Show(String.Format("Welcome {0}", user.Text), "Success!", MessageBoxButton.OK); 
     NavigationService.Navigate(someUri); 
    } 
} 

問題發生在我調用NavigationService的行上。預先感謝您的幫助。

回答

相關問題