Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Windows Phone 7 Application Development: Building Windows Phone Applications Using S
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Windows Phone 7 Application Development: Building Windows Phone Applications Using S
This is the forum to discuss the Wrox book Beginning Windows Phone 7 Application Development: Building Windows Phone Applications Using Silverlight and XNA by Nick Lecrenski, Karli Watson, Robert Fonseca-Ensor; ISBN: 978-0-470-91233-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Windows Phone 7 Application Development: Building Windows Phone Applications Using S section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 18th, 2012, 03:02 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy NavigationSampleApp: name 'InitializeComponent' does not exist in the current context

NavigationSampleApp - Chapter 5 - page 159 - 166 of 2011 copyright

When build get error: The name 'InitializeComponent' does not exist in the current context...

This error is caused because the book seems to use a project name that is different from the book's listed code and different from the downloaded source code. If you do the example and name the project "NavigationSample" vs "NavigationSampleApp", you will avoid this error and others.

If you use a Project Name as the book says of: NavigationSampleApp
, the namespace and x:Class= should have the same name. These are generally at or near the top of the files where used:

namespace NavigationSampleApp
x:Class="NavigationSampleApp.xxpagenamexx"

errors in book:
page 159 - Customer.cs - s/b: namespace NavigationSampleApp

page 160 - CustomerDetails.xaml - s/b: x:Class="NavigationSampleApp.CustomerDetails"

page 161 - MainPage.xaml - s/b: x:Class="NavigationSampleApp.MainPage"

page 163 - MainPage.xaml.cs - private void LoadCustomers() -
NavigationSample.App s/b NavigationSampleApp.App

page 165 - CustomerDetails.xaml.cs - s/b namespace NavigationSampleApp

page 165 - CustomerDetails.xaml.cs -protected override void ....
NavigationSample.App s/b NavigationSampleApp.App

For a beginners book, my opinion is that it is better to have accurate book instructions that match the book example code and the book's download code.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 9 November 3rd, 2010 06:48 AM
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 0 November 2nd, 2010 11:07 AM
The name 'Request' does not exist in the current context janilane BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 July 13th, 2010 05:46 PM
The name 'partOneStep' does not exist in the current context pallone ASP.NET 3.5 Basics 11 March 4th, 2009 04:30 AM
The name 'txtOperande1' does not exist in the current context stevemcd999 BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 3 February 25th, 2009 10:58 PM



All times are GMT -4. The time now is 03:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.