Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Dynamicaly change binding based on language

$
0
0

Hello

I have TextBox. I have one class object.

Public Class MyClass

{

   public string engData{get; set;}

   public string japData{get; set;}

}

Now I want to change binding of text ptoperty to the columns based onlanguage.

Like If current language is english then textbox's text property should be binded twoway with engData .

If current language is changed to japanese then text property should binded to japData.

I am following MVVM so i can not write on button click.

So is there any general way to do it?

Regards


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>