Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Animate keypress? (Read 5251 times)
Bleary Eye
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: Aug 17th, 2017
Animate keypress?
Aug 17th, 2017 at 11:50am
Print Post  
Can VK keypress be animated? As it stands, nothing is shown when a key is pressed. Perhaps the color could change, for instance.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3471
Joined: Oct 19th, 2005
Re: Animate keypress?
Reply #1 - Aug 17th, 2017 at 12:22pm
Print Post  
The "Custom Style" example shows this using MouseDown trigger, check the CustomVirtualKeyboardStyle.xaml file -

Code
Select All
<ControlTemplate.Triggers>
    <EventTrigger RoutedEvent="UIElement.MouseDown">
        <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/> 



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


I Love MindFusion!

Posts: 14
Joined: Aug 17th, 2017
Re: Animate keypress?
Reply #2 - Aug 17th, 2017 at 1:32pm
Print Post  
Where do I find the example? I've searched your website ...
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3471
Joined: Oct 19th, 2005
Re: Animate keypress?
Reply #3 - Aug 17th, 2017 at 1:50pm
Print Post  
Under keyboard's installation folder, something like MindFusion\Keyboard.WPF\Samples\CSharp\Styles\CustomVirtualKeyboardStyle.xaml.
  
Back to top
 
IP Logged
 
Bleary Eye
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: Aug 17th, 2017
Re: Animate keypress?
Reply #4 - Aug 17th, 2017 at 2:06pm
Print Post  
Thanks. The example uses code behind. I'd like to set TemplateLayout in the XAML instead. For that it looks like I'll need a custom converter from a path string to KeyboardLayout. Do you provide such a converter?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3471
Joined: Oct 19th, 2005
Re: Animate keypress?
Reply #5 - Aug 17th, 2017 at 3:17pm
Print Post  
I guess this refers to your other post about hiding keys. There's no built-in converter available.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint