wpf

This forum is meant for examples of X# code.

ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

wpf

Post by ic2 »

Hello Juraj,

This is probably exactly what you need:

https://docs.microsoft.com/en-us/dotnet ... ey-pressed

You define the method to be called in the XAML code of the control and the called C# method is only a few lines is easy to convert to X#. Note that you can also add a C# project to your solution and call the C# methods as if they are written in X# - without the need to convert anything, should you encounter a more complicated but working C# method somewhere.

Dick
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

wpf

Post by Juraj »

Hello Dick,
Thank you for your good pleasure. I have no problem to check which key was pressed, the problem was to emulate press Tab or Shift + Tab. I found one solution that fits my application. It was also in C#, but I managed to convert it to XSharp. Be sure to use your advice in the future.

Juraj
Post Reply