<Popup
    x:Class="WpfKb.Controls.FloatingTouchScreenKeyboard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:WpfKb="clr-namespace:WpfKb"
    xmlns:Controls="clr-namespace:WpfKb.Controls"
    xmlns:Behaviors="clr-namespace:WpfKb.Behaviors"
    x:Name="keyboard"
    DataContext="{Binding ElementName=keyboard}"
    Placement="Relative"
    AllowsTransparency="True"
    HorizontalOffset="0"
    VerticalOffset="0"
    >
    <Grid x:Name="LayoutGrid" Height="1080" Width="1920">
        <Interactivity:Interaction.Behaviors>
            <Behaviors:AutoHideBehavior
                AreAnimationsEnabled="{Binding AreAnimationsEnabled}"
                IsShown="{Binding IsKeyboardShown, Mode=TwoWay}"
                IsAllowedToHide="{Binding IsAllowedToFade}"
                MinOpacity="{Binding MinimumKeyboardOpacity}"
                MaxOpacity="{Binding MaximumKeyboardOpacity}"
                HideDelay="{Binding KeyboardHideDelay}"
                HideDuration="{Binding KeyboardHideAnimationDuration}"
                ShowDuration="{Binding KeyboardShowAnimationDuration}"
                />
        </Interactivity:Interaction.Behaviors>

        <Grid.RowDefinitions>
            <RowDefinition Height="0" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="0"/>
            <ColumnDefinition Width="41"/>
            <ColumnDefinition Width="123"/>
            <ColumnDefinition Width="0*" />
            <ColumnDefinition Width="0*"/>
        </Grid.ColumnDefinitions>
        <Border
            Grid.Row="1"
            Grid.ColumnSpan="6"
            Background="LightGray"

            CornerRadius="10, 10, 10, 10" Margin="0,0,0,0"
            >
            <Controls:OnScreenWebKeyboard
                AreAnimationsEnabled="{Binding AreAnimationsEnabled}"
                />
        </Border>
    </Grid>
</Popup>
