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 !!
To prevent users from modifying the contents of a TextBox control, set the IsReadOnly attribute to true.
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With