Quote:
Originally Posted by nlecren
Is this for the ControlTemplate solution? If so the StaticResource it is referring to is located in App.xaml. I just downloaded the code from the site and it appears to be working fine.
Can you give me more information about your setup? Visual Studio version, OS, etc...?
Thanks
|
Yes, this is for the ControlTemplate Solution.
I downloaded the code again for this example and created a new project, and copied the code directly from the download into Visual Studio 2010 Professional for the files listed in the book for this "try it out". The files I copied/pasted are:
MainPage.xaml
App.xaml
MainPage.xaml.cs
I still have this error:
The name 'InitializeComponent' does not exist in the current context
the line number indicated for this error is "49", the column number indicated is 13, the file indicated is app.xaml.cs
I copied/pasted the code from the download so I wouldn't have any issues with entering something incorrectly.
I also had tried this example with the Visual Studio Express 2010 for Windows Phone environment and got the same error.
Here is the info on the setup I am using:
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel
Installed Version: Professional
Microsoft Office Developer Tools 01018-532-2002102-70346
Microsoft Office Developer Tools
Microsoft Visual Basic 2010 01018-532-2002102-70346
Microsoft Visual Basic 2010
Microsoft Visual C# 2010 01018-532-2002102-70346
Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01018-532-2002102-70346
Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01018-532-2002102-70346
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002102-70346
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010 01018-532-2002102-70346
Microsoft Visual Web Developer 2010
Microsoft Windows Phone Developer Tools - ENU 01018-532-2002102-70346
Microsoft Windows Phone Developer Tools - ENU
Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319
Microsoft Visual Studio 2010 SharePoint Developer Tools
Microsoft XNA Game Studio 4.0
Microsoft XNA Game Studio 4.0
Build 4.0.20823.0
---
It could be that you have a resource defined on your machine that I need to also define, but I haven't a clue what or where.
Thanks,
Frances