我正在做一个WP7应用程序。我的问题是过渡框架不接受。我收到了错误
“错误1找不到类型或命名空间名称'TransitionFrame'(您是否缺少using指令或程序集引用?)D:\ Resources \ Windows-phone \ Appcity \ Appcity.Application \ App.xaml。 cs 108 28 Appcity.Application“。
我该如何解决这个问题? 感谢..
App.xaml.cs中的代码是
private void InitializePhoneApplication()
{
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
//RootFrame = new PhoneApplicationFrame();
RootFrame = new TransitionFrame();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
phoneApplicationInitialized = true;
}
答案 0 :(得分:0)
右键单击“Solution Explorer”(您的项目)中的引用,单击“Add reference”,然后浏览到Toolkit的dll并添加它。 那应该解决它。 见this page