Character Handler in WPF

Heiko 1,236 Reputation points
2021-06-29T13:40:26.33+00:00

Hi,

I would like to jump in a ListView (GridView) by entering letters to the entry that starts with these letters in the first column. Unfortunately, this does not already happen automatically. Therefore I wanted to implement it myself.

But I notice that neither the ListView nor the Window have a CharacterReceived event. The KeyUp handler is also inappropriate, since it only returns keys from an enumeration, but not letters of arbitrary scripts (Cyrillic, Arabic, etc.).

Now how can I implement this?

In UWP there is CoreWindow.GetForCurrentThread().CharacterReceived, what in WPF?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,771 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
809 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.