Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY) (Read 1092 times)
forl
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jun 29th, 2023
AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Jun 29th, 2023 at 9:20am
Print Post  
I have been experimenting with the VirtualKeyboard.

When used like this :

Code
Select All
<Window ...>
    <Grid>
    <vk:VirtualKeyboard TemplateLayout="{Binding KeyboardLayout}"
                                IsStandAlone="False"
                                AutoFill="True" />
     </Grid>
</Window>
 



All is fine. When I change from English to German to French I see it automatically change between QWERTY, QWERTZ and AZERTY

However, when I try to instantiate the VirtualKeyboard within a data template, AutoFill doesn't work anymore, and as I change between the languages, the keyboard doesn't update between QWERTY, QWERTZ and AZERTY?

Its very strange? not sure why having it in a template would cause this behaviour?

Code
Select All
<Window ...>

    <Window.Resources>
        <DataTemplate DataType="{x:Type local:KeyboardViewModel}">
            <vk:VirtualKeyboard TemplateLayout="{Binding KeyboardLayout}"
                                IsStandAlone="False"
                                AutoFill="True" />
        </DataTemplate>
    </Window.Resources>

    <Grid>
        <ContentPresenter Content="{Binding KeyboardViewModel}" />
    </Grid>
</Window>
 



I am using the MindFusion.Keyboard.Wpf 5.0.3 nuget package in a .net 6 WPF project.

Code
Select All
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <Nullable>enable</Nullable>
    <UseWPF>true</UseWPF>
  </PropertyGroup>

  <ItemGroup>
    <None Remove="Default.xml" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="Default.xml" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="MindFusion.Keyboard.Wpf" Version="5.0.3" />
  </ItemGroup>

</Project>
 



I have attached the VS project if it helps.
  

TestApp.zip ( 88 KB | 73 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #1 - Jun 29th, 2023 at 3:53pm
Print Post  
Hi,

The control installs some system hooks to track current language and active window. Apparently instantiating from a data template interferes with that somehow (maybe too early to get required win32 handles), so it no longer detects changed language. Our developer will investigate.

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


I Love MindFusion!

Posts: 4
Joined: Jun 29th, 2023
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #2 - Jul 11th, 2023 at 8:23am
Print Post  
Any update on this?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #3 - Jul 12th, 2023 at 1:07pm
Print Post  
Try this build -
https://mindfusion.eu/_temp/vkb_datatemplate.zip

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


I Love MindFusion!

Posts: 4
Joined: Jun 29th, 2023
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #4 - Jul 12th, 2023 at 3:54pm
Print Post  
Thank you, that appears to work now.
  
Back to top
 
IP Logged
 
forl
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jun 29th, 2023
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #5 - Aug 21st, 2023 at 4:32pm
Print Post  
Will you be updating the nuget package for this please?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: AutoFill not working when keyboard is inside a template (QWERTY, QWERTZ and AZERTY)
Reply #6 - Aug 23rd, 2023 at 8:36am
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint