Quantcast
Viewing all articles
Browse latest Browse all 18858

How to display text from properties.resources in WPF UI?

What I have done currently is like this. on my XAML.cs:

<Label Content="{Binding MyText}" />

Then in my cs file, I have this

public string MyText { get { return properties.resources.myText; }}

You see, the problem is, i need o create a method for every single text on my UI. And these are only static text. Please tell me a smarter way of doing thing.

Jessi


Viewing all articles
Browse latest Browse all 18858

Trending Articles