Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use my native script (Tamil) in textbox wpf controls

I'd like to use my native language script (Tamil). I've decided to use the windows default font Latha, which was designed especially for Tamil. However I couldn't type the native language in the text box. when i was typing it was capturing English only. How to achieve this ?

Any help would be greatly appreciated !!

like image 384
Smaug Avatar asked Mar 13 '13 08:03

Smaug


People also ask

How do I make a TextBox readonly in WPF?

To prevent users from modifying the contents of a TextBox control, set the IsReadOnly attribute to true.

What event's for a TextBox can determine when the text inside the control has been modified?

The event handler is called whenever the contents of the TextBox control are changed, either by a user or programmatically. This event fires when the TextBox control is created and initially populated with text.

What are WPF controls?

WPF SDK continues to use the term "control" to loosely mean any class that represents a visible object in an application, it is important to note that a class does not need to inherit from the Control class to have a visible presence.


1 Answers

have you tried with adding custom font family resource like this ?

<FontFamily x:Key="MyFontFamily">/Fonts/FontName__.TTF</FontFamily>

and you can use this Style to your TextBox FontFamily.

like image 122
asitis Avatar answered Oct 11 '22 11:10

asitis