dotnet / dotnet/wpf

[Behavior Proposal]: Using WordsSegmenter to TextBoxBase.AutoWordSelection

Open
#8,060 0 comments 1 reaction 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Now the TextBoxBase.AutoWordSelection will select the words base. But some culture langurage use characters instead of words, such as Chinese and so on. That means the `TextBoxBase.AutoWordSelection = true` will do nothing, as `TextBoxBase.AutoWordSelection = false`

The `TextBoxBase.AutoWordSelection` will use blank characters to split the words, not the culture rules. And I find the [WordsSegmenter](https://learn.microsoft.com/en-us/uwp/api/windows.data.text.wordssegmenter) can split the words depending on the particular language.

We can make the TextBoxBase.AutoWordSelection better by using [WordsSegmenter](https://learn.microsoft.com/en-us/uwp/api/windows.data.text.wordssegmenter)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.