Prikaz touch tipkovnice v desktop aplikacijah

Trenutna različica OS-a ne prikaže samostojno tipkovnice ob dotiku na TextBox. To ni najbolj prijazno za uporabnike tablic kot so Surface 2 Pro, saj morajo ves čas pritiskati na ikona za virtualno tipkovnico v orodni vrstici spodaj desno.

image

Ta problem žal še nima elegantne rešitve, sem pa našel Windows 8 program, ki prikaže tipkovnico:

Process.Start(@"C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe");

In tukaj je še koda za gumbek, ki izgleda kot Windows tipkovnica:

image

        <Grid Background="Transparent" Margin="100,0,0,8" Width="81" Height="36"
            <Rectangle Stroke="White" StrokeThickness="4" RadiusX="1" RadiusY="1" Fill="Black" />
            <Rectangle Stroke="Black" StrokeThickness="1" RadiusX="1" RadiusY="1" />
            
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,14,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="12" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,23,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="14,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="14,14,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Height="8" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="18,23,18,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="23,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="23,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="32,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="32,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="41,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="41,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="50,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="50,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="59,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="59,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="68,5,0,0" RadiusX="1" RadiusY="1" />
            <Rectangle Fill="White" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="68,14,0,0" RadiusX="1" RadiusY="1" />

            <Rectangle Fill="White" Width="12" Height="8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="18,23,5,0" RadiusX="1" RadiusY="1" />
        </Grid>

Postopek za prikaz tipkovnice ob TextBox-u je žal bolj kompleksen in ga k sreči nisem potreboval. Če ga potrebujete, vam priporočam ta dva linka:

Vse trenutne rešitve niso uradne in obstaja možnost, da ne bodo delovale v naslednjih različicah Windows-a.