Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic preview text in wpf keyboard (Read 3792 times)
leylin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Apr 21st, 2021
preview text in wpf keyboard
Apr 21st, 2021 at 2:17am
Print Post  
Hi, is it possible to add a preview text in the "pop-up keyboard window" ?

i want to place my keyboard to be always at the bottom, but because one of our page has so many information to be filled, the keyboard might block some of the textblock. so is it possible to show the "preview text" in the keyboard window?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3440
Joined: Oct 19th, 2005
Re: preview text in wpf keyboard
Reply #1 - Apr 21st, 2021 at 6:38am
Print Post  
Hi,

We don't provide the whole keyboard window but embeddable component you place in your own windows anyway, so you should be able to add whatever other WPF elements you need to the popup.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
leylin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Apr 21st, 2021
Re: preview text in wpf keyboard
Reply #2 - Apr 21st, 2021 at 8:58am
Print Post  
Hi, yes its also ok if we can add a textbox within the popup window.

but What I want to achieve is, when I for example press "w" in my pop-up virtual keyboard, both in my original textbox and textbox in the pop-up should show "w".

how can I achieve this? because I cant find any sample
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3440
Joined: Oct 19th, 2005
Re: preview text in wpf keyboard
Reply #3 - Apr 21st, 2021 at 9:24am
Print Post  
Hi,

You could try handling the keyboard's KeyPressed event and appending pressed key to that extra text field -

Code
Select All
void Vk_KeyPressed(object sender, VirtualKeyEventArgs e)
{
    var key = e.Key as RegularKey;
    if (key != null)
        textBlock.Text += key.CurrentCase;
} 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
leylin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Apr 21st, 2021
Re: preview text in wpf keyboard
Reply #4 - Apr 21st, 2021 at 9:46am
Print Post  
Hi, thank you so much. this is solving my case. thank you for the help and your quick response
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint