简体   繁体   中英

Can't set InputScope of RichEditBox to “Text” in Windows Phone 8.1 app

In a Windows 8.1 app I'm not able to set the InputScope-property of the RichEditBox to "Text" although, according to the documentation , it should be possible.

The option is missing in the enumeration but I don't understand why.

I get the following error when setting InputScope="Text" :

"Unable to convert 'Text' to the type 'InputScope'"

I'm using the following environment:

Window 8.1 Pro

Visual Studio 2013 Ultimate update 5

Microsoft .NET Framework 4.6.00081

In the properties of the project the application target is set to Windows 8.1

The Text input scope is not supported in Windows Runtime apps.

You can read about all the available input scopes in the official documentation , and you probably missed the note which says not supported in Windows apps.

I would suggest you use Chat or Search instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM