Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Windows Phone 7 Application Development: Building Windows Phone Applications Using S
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.




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 05: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 11:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.