Keyboard hides automatically after moving

Sep 19, 2011 at 11:34 AM
Edited Sep 19, 2011 at 12:54 PM

Hi,

i was looking exactly for a control like this, so i wanted to give it a try. The Demo is quite good and understandable. I tried to import it to my own project. 

I do the following:

1) Add the Wpfkb.dll to my project

2) add the namespace : xmlns:wpfkb="clr-namespace:Wpfkb.Controls;assembly=Wpfkb"

3) add the component in xaml:

<wpfkb:FloatingTouchScreenKeyboard           

DataContext="{Binding Main,Source={StaticResource Locator}}"           

x:Name="Keyboard"           

IsOpen="{Binding showKeyboard}"           

Width="900"           

Height="400"           

PlacementTarget="{Binding ElementName=window}"           

Placement="Center"           

IsAllowedToFade="False"/>

 

Regardless, if the isAllowedToFade is set to True or False. After i move the control a little, it fades out after about 5 Seconds. 

Even when setting the KeyboardHideDelay to 0 or 500, it fades out after 5 seconds. Am I missing something?

 

Regards, Steve

 

EDIT: 

This only seems to happen, when setting the DataContext in some way. I wanted to bind the isOpen property to my Viewmodel, so i could hide and show the control