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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:15:29+00:00 2026-05-25T18:15:29+00:00

For localization I’m using the Resource-file (.resx files) functionality in .NET, but I’m wondering

  • 0

For localization I’m using the Resource-file (.resx files) functionality in .NET, but I’m wondering if there’s a smart way to databind the various localization properties directly in XAML?

The resource file only seems to expose static properties, which I can’t figure out how to bind from a viewmodel, or other resource dictionary.

Also, if it’s possible, I’d like it to work at design-time with Expression Blend.

  • 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-25T18:15:29+00:00Added an answer on May 25, 2026 at 6:15 pm

    Here is how I do it.

    WPF:

    1. Create a resource file and in the same assembly create a class that has a public constructor. Make sure the resource file is marked public.

    2. In your xaml file – add a reference to this location in the namespaces

      xmlns:res="clr-namespace:MyProject.StringResources"

    3. For your text property use the following binding

      TextProperty="{x:Static res:ResourceFileName.ResourceKey}"

    Silverlight:

    1. Follow steps 1 & 2 above and then add the resource file as a Resource in either your user control or in an application level resource:

      <res:ResourceFileName x:Key="resourcesLabels"/>

    2. For your text property use the following binding:

      TextProperty="{Binding ResourceKey, Source={StaticResource resourceLabels}}"

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

Sidebar

Related Questions

Localization/Globalization is pretty easy in Visual Studio using RESX files. I just add a
I'm doing .NET Localization with resource files and I encountered with following problem: I
I recently figured out how to do localization in MVC using resource files containing
how do I use localization in Silverlight? since there are no local resource files
I need some information about localization. I am using .net 2.0 with C# 2.0
My localization files (.po) work if I change the default language, but I can't
Definitions: Files: Having the localization phrases stored in a physical file that gets read
I have localization in my app(english,spanish,italian).The client sent me strings files but some characters
I've been doing localization for my WPF application by storing strings in .resx files.
I know how to apply Localization to a page by creating the resource file.

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.