Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:50:34+00:00 2026-06-13T12:50:34+00:00

I am quite a novice programmer, and I am going diligently through the text

  • 0

I am quite a novice programmer, and I am going diligently through the text book, “Programming Windows Phone 7” by Charles Petzold. However, in the example on sharing data among pages in Silverlight, I cannot cast the Application class as App. If you have the free text book it is page 113.

The error is “The type or namespace name ‘App’ could not be found (are you missing a using directive or an assembly reference?)”

Could somebody please advise how to fix this? If it is a using directive, then is there some way that I can figure these out on my own without having to have super memory?

Thank you very much!

if (ContentPanel.Background is SolidColorBrush) {
            (Application.Current as App).SharedColor = (ContentPanel.Background as SolidColorBrush).Color;
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:50:35+00:00Added an answer on June 13, 2026 at 12:50 pm

    As mentioned in notes, I accidentally had incorrect namespaces as I copied the code from a previous example. Just cleaning up, very new to stackoverflow and like to leave things neat and tidy 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm an experienced programmer, but a novice to XSLT and am finding it quite
Disclaimer : I'm quite a novice to RoR, but not with Ruby (if that
I still consider myself quite a novice when it comes to JavaScript/JQuery. How would
i'm quite novice in iphone s/w development i was on an application it requires
Am quite a novice here so please excuse me if I am sounding too
I'm quite a novice with PHP, but would like some assistance with how to
I'm quite a novice at PHP. I would like the IP address that I
I am quite a novice at this so please bear with me. I have
I'm afraid I am quite a novice to MySQL. I've done a lot of
I am coming from a novice database programmer background, mainly using MS Access for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.