-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
37 lines (35 loc) · 1.67 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Window x:Class="WW.WPF.VirtualKeyboard.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:WW.WPF.VirtualKeyboard"
xmlns:converters="clr-namespace:WW.WPF.VirtualKeyboard.Converters"
xmlns:properties="clr-namespace:WW.WPF.VirtualKeyboard.Properties"
mc:Ignorable="d"
WindowState="Minimized"
Title="Virtual Keyboard" Height="160" Width="240" MinWidth="240" MinHeight="160"
WindowStartupLocation="Manual" Top="320" Left="0"
ShowInTaskbar="True" ResizeMode="CanMinimize"
>
<Window.Resources>
<converters:BooleanToStyleHideConverter x:Key="BooleanToStyleHideConverter" />
</Window.Resources>
<Window.Style>
<Style TargetType="Window">
<Setter Property="WindowStyle" Value="SingleBorderWindow" />
<Style.Triggers>
<DataTrigger Binding="{Binding Source={x:Static properties:Settings.Default}, Path=HideTitleBar}" Value="True">
<Setter Property="WindowStyle" Value="None" />
</DataTrigger>
</Style.Triggers>
</Style>
</Window.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ContentControl Grid.Row="0" Content="{Binding SelectedControl}" />
</Grid>
</Window>