<Popup
    x:Class="WpfKb.Controls.FloatingNumberKeyboard"
    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:OnScreenKeypad
                AreAnimationsEnabled="{Binding AreAnimationsEnabled}" OpacityMask="Magenta"
                >
                <Controls:OnScreenKeypad.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                        <GradientStop Color="#FFFF3D3D" Offset="0.741"/>
                    </LinearGradientBrush>
                </Controls:OnScreenKeypad.Background>
            </Controls:OnScreenKeypad>
        </Border>
    </Grid>
</Popup>
