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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:41:04+00:00 2026-05-30T19:41:04+00:00

In our WPF plugin project we use LocBaml tool to localize UI. But now

  • 0

In our WPF plugin project we use LocBaml tool to localize UI. But now it is needed to localize a string inside a cs file:

ToolInfo.MenuCaption = "&Toggle console";

I’ve found some localization topics:

WPF Localization – On-the-fly Language Selection

WPF Application Framework (WAF)

WPF Localization Extension

It seems that for using these 3rd party tools it is needed to remove LocBalm implementation and write a new one.

Is it possible to stay with LocBaml tool and add a translation just for this string in cs file?

  • 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-30T19:41:05+00:00Added an answer on May 30, 2026 at 7:41 pm

    If the custom localization is taking place only in codebehind (cs file(s)), there’s no reason that I can see for it to not work with LocBaml.

    You could always use a hack to use LocBaml for this localized string as well, something like this :

    <TextBlock x:Uid="HiddenText" Name="HiddenText" Text="&Toggle console" Visibility="Collapsed" />
    

    And in codebehind :

    ToolInfo.MenuCaption = HiddenText.Text;
    

    This is kind of mildly awful, but you should be able to still localize the string with LocBaml this way.

    Otherwise, you’ll have to string together a separate system yourself – something with resource strings and a resource manager, most likely – or try to get one of the localization platforms to play nice with LocBaml.

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

Sidebar

Related Questions

Apparantly when users right-click in our WPF application, and they use the Windows Classic
I have a project I'm working on that requires our WPF application read SMS
OK We have a Adobe Air (AS3) application that runs our WPF application. but
I have to use Sync Framework 2.0 in our WPF app that will contain
On our current WPF project, we've been performing dependency injection using the Ninject IOC
We are embarking on our first Silverlight project, coming from WPF. It's a relatively
So we built a WPF app, now for our next version we need a
In our app we host a small WPF Listbox inside of an Element host,
I am building a both Silverlight and WPF clients for our project. When I
We were testing our WPF application on Windows XP in the VMware Player (with

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.