Skip to content

Instantly share code, notes, and snippets.

@itsho
Last active January 2, 2019 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsho/58d9cc7ad66d898216454cecb183ea1d to your computer and use it in GitHub Desktop.
Save itsho/58d9cc7ad66d898216454cecb183ea1d to your computer and use it in GitHub Desktop.
Compile this WPF project with 4.6.2+ and run on Windows 10 1607+ (Anniversary Update)
<Window x:Class="TabletKeyboardAutoOpen.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TabletKeyboardAutoOpen"
mc:Ignorable="d"
FontSize="30"
Title="MainWindow"
WindowStartupLocation="CenterScreen"
Height="450"
Width="800">
<Window.Resources>
<Style TargetType="PasswordBox">
<Setter Property="Margin"
Value="30"></Setter>
<Setter Property="Height"
Value="100"></Setter>
</Style>
<Style TargetType="TextBox">
<Setter Property="Margin"
Value="30"></Setter>
<Setter Property="Height"
Value="100"></Setter>
</Style>
</Window.Resources>
<ScrollViewer>
<StackPanel>
<DockPanel>
<TextBlock Text="Textbox:"
VerticalAlignment="Center" />
<TextBox />
</DockPanel>
<DockPanel>
<TextBlock Text="PasswordBox:"
VerticalAlignment="Center" />
<PasswordBox />
</DockPanel>
<DockPanel>
<TextBlock Text="Textbox:"
VerticalAlignment="Center" />
<TextBox />
</DockPanel>
<DockPanel>
<TextBlock Text="PasswordBox:"
VerticalAlignment="Center" />
<PasswordBox />
</DockPanel>
<DockPanel>
<TextBlock Text="Textbox:"
VerticalAlignment="Center" />
<TextBox />
</DockPanel>
<DockPanel>
<TextBlock Text="PasswordBox:"
VerticalAlignment="Center" />
<PasswordBox />
</DockPanel>
<DockPanel>
<TextBlock Text="Textbox:"
VerticalAlignment="Center" />
<TextBox />
</DockPanel>
<DockPanel>
<TextBlock Text="PasswordBox:"
VerticalAlignment="Center" />
<PasswordBox />
</DockPanel>
</StackPanel>
</ScrollViewer>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment