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

  • Home
  • SEARCH
  • 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 9050813
In Process

The Archive Base Latest Questions

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

I have a Windows Phone 7 app which I’m trying to create a Windows

  • 0

I have a Windows Phone 7 app which I’m trying to create a Windows Phone 8 version of it.

In the app I have a ResourceDictionary defined in a XAML file as:

<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib">

    <sys:String x:Key="AppName">My App Name</sys:String>
    <!-- etc. -->

</ResourceDictionary>

This ResourceDictionary is referenced in App.xaml as:

<!--Application Resources-->
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Assets/Constants.xaml"/>
            <!-- etc. -->
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

And then the easy part of doing:

<TextBlock x:Name="ApplicationTitle" Text="{StaticResource AppName}"/>

The above works perfectly fine with Windows Phone 7, however, in Windows Phone 8 there is an additional Application.Resources item which is <myNamespace:LocalizedStrings x:Key="LocalizedStrings"/> which when I have my app does not compile as it complains about

Each dictionary entry must have an associated key.

So I changed by code to be:

<!--Application Resources-->
<Application.Resources>
    <myNamespace:LocalizedStrings x:Key="LocalizedStrings"/>
    <ResourceDictionary x:Key="MainDictionary">
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Assets/Constants.xaml"/>
            <!-- etc. -->
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Now I have another problem. My app compiles but when it runs it throws a XamlParseException:

Cannot find a Resource with the Name/Key AppName

This all happens because of LocalizedStrings resource. Can someone help in making that work?

By the way, I have the same issue with the Value Converters; if they are done differently I appreciate if someone can help in that as well.

Thanks in advance.

  • 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-16T12:44:52+00:00Added an answer on June 16, 2026 at 12:44 pm

    Move the localized strings entry into the top-level application resource dictionary.

    <!--Application Resources-->
    <Application.Resources>
            <ResourceDictionary x:Key="MainDictionary">
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="Assets/Constants.xaml"/>
                    <!-- etc. -->
                </ResourceDictionary.MergedDictionaries>
                <myNamespace:LocalizedStrings x:Key="LocalizedStrings"/>
            </ResourceDictionary>
    </Application.Resources>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to create a Windows Phone 7 app as part of a research
I have a project wherein i have to create a windows mobile app which
I am building a Windows Phone app which uses the camera. I have the
For a Windows Phone 7 app, I have created an application bar which is
For my Windows Phone 7 app, I have a main panorama page which opens
I have a slider element in my windows phone app which has min value=1
I have a windows phone 7 app with some xaml that looks like: <Grid
I have a ListBox in a xaml page for a Windows Phone 7 app.
I have a pivot windows phone 7 app on which there is a bing
Possible Duplicate: Windows Phone 7 close application I have an app which needs quiting

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.