We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change input language in runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

127405 Nov 14,2016 02:49 PM UTC Nov 17,2016 06:00 AM UTC UWP 5
loading
Tags: SfRichTextBoxAdv
alexander
Asked On November 14, 2016 02:49 PM UTC

Why does input language not changes when using that control? How can i switch input language, than it would be as the system input?
If i set Language to Language.CurrentInputMethodLanguageTag at start, it doesn't changes any way after that.

Venkatesan Mani [Syncfusion]
Replied On November 15, 2016 11:35 AM UTC

Hi Alexander,

Thank you for using Syncfusion products.

Regarding changing the language:
The Language property of the Control is used to get or set localization/globalization language information that applies to a FrameworkElement. Please find more details from the following link

Language Property:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.frameworkelement.language

Changing the Input language at run time in UWP apps:
The language can be changed in runtime in UWP by using the runtime API Language.TrySetInputMethodLanguageTag. This method will only attempt to change the input language if the application is running on an IoT device. On non-IoT devices, it won’t change the input language. For further reference refer the below mentioned link.
MSDN link:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.language.trysetinputmethodlanguagetag.aspx

So we can input the Multilanguage in SfRichTextBoxAdv control, only by changing the system input language.

To switch the input language:
The system input language is the input language for the control. To add and change the input language in Windows 10. Follow the below mentioned steps,

To add the keyboards:
1. Click on the Start Menu and then click on Settings.
2. Click on Time & language and then click on Region & language
3. Click on the language you want to add a key board to and then click on options.
4. Click on Add a keyboard.
5. Click on the keyboard you want to add.

To change the keyboard:
Press Windows + Space bar to switch between the keyboards.

MSDN link:
https://support.microsoft.com/en-us/instantanswers/60f32ff8-8697-4452-af7d-647439c38433/how-to-add-an-input-language-to-your-pc

Regards,
Venkatesan M. 


alexander
Replied On November 15, 2016 12:09 PM UTC

Thanks, but the problem is that input language doesn't change when system input language changes. I tried that in your Windows Store sample.
I set keyboard language to different that was on Sample browser launch, but it didn't change. When i relaunch Sample Browser, input language applies and never changes again.

Windows 10 Pro x64
Version 1607
Build 14393.447

Venkatesan Mani [Syncfusion]
Replied On November 16, 2016 12:07 PM UTC

Hi Alexander,

Thank you for your update.

At present there is no support to switch between the languages at runtime in SfRichTextBoxAdv. A support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 
Alternative solution:
As a work around you can change the input language at runtime in SfRichTextBoxAdv using a TextBox. While changing languages by moving the focus to Microsoft TextBox and back to SfRichTextBoxAdv control. We have prepared a sample to demonstrate the same. Please find the sample from following link.

Sample link:
Sample.zip

Regards,
Venkatesan M.  


alexander
Replied On November 16, 2016 02:42 PM UTC

Thank you, that works!

Venkatesan Mani [Syncfusion]
Replied On November 17, 2016 06:00 AM UTC

Hi Alexander,

Please let us know if you require any further assistance. We will be happy to assist you.

Regards,
Venkatesan. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;