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 6582727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:19:02+00:00 2026-05-25T16:19:02+00:00

I am sure that it’s a rather trivial solution, but I can’t seem to

  • 0

I am sure that it’s a rather trivial solution, but I can’t seem to be able to find it.

I have a WPF application running on .NET 4.0. In this application, I need to access, from the XAML code, a string resource I defined in my resource.resx file. I added the application.properties namespace to xaml, but when I try to link to any property of the Resources class, VS complains that the Type is not found.

Here is my code:

<Window x:Class="MyApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:prop="clr-namespace:MyApp.Properties"
    Title="MyApp" Height="200" Width="525" >
        <Grid>
            <Label Content="{x:Static prop:Resources.string}" Height="28" HorizontalAlignment="Left" Name="labelStringName" VerticalAlignment="Center" />
        </Grid>
</Window>

The exact error message is

Error 3 Type ‘prop:Resource’ was not found. c:\users\me\documents\visual studio 2010\Projects\MyApp\MyApp\MainWindow.xaml 3 44 MyApp

  • 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-05-25T16:19:03+00:00Added an answer on May 25, 2026 at 4:19 pm

    I forced a build and the designer updated itself. Seems like it was only a designer bug.

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

Sidebar

Related Questions

I am sure that this kind of questions must have been asked before, but
I am pretty sure that I have initialised everything, but it still throws Object
I know for sure that we can't but what would be exact explanation for
I am not sure that I am asking right question. But I have a
How can I be sure that my result set will have a first and
I am sure that this question is already answered, but I find it hard
I was sure that it hasn't, but looking for a definite answer on the
How can i make sure that several divs are slided up? Right now I
I'm 99% sure that the answer is no, but I'm wondering if someone who
I'm sure that this has been asked before, but I don't know what to

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.