0
在Windows Phone 8.1應用程序中,我試圖將數據從MainPage頁面傳遞到ImageFullScreen頁面。我從.shared文件(MainPage.cs)傳遞數據,但它不識別ImageFullScreen頁面。我錯過了什麼嗎?Windows Phone 8.1無法識別正在導航的頁面
public class PassedData
{
public string Name { get; set; }
}
private void ListItems_Tapped(object sender, TappedRoutedEventArgs e)
{
Frame.Navigate(typeof(ImageFullScreen), new PassedData { Name = "my name"});
}
錯誤:
The type or namespace name 'ImageFullScreen' could not be found (are you missing a using directive or an assembly reference?)
右鍵單擊它說:imagefullscreen,你有一個選項導入什麼?如果你的名字空間不同,我很好奇。 –
@Adam Tuliper-MSFT,我沒有那個選項... – Vigs
看看你的ImageFullScreen,它是相同的命名空間嗎?如果是這樣看看是否有幫助http://stackoverflow.com/questions/16516731/interaction-between-xaml-and-xaml-cs-files-within-same-namespace –