<UserControl x:Class="C1_Demo.InputHandling"
    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"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="FramePanel" Background="Transparent">
        <Border x:Name="Rectangle" 
            Background="Red" 
            Width="100" Height="100" 
            CacheMode="BitmapCache"
            VerticalAlignment="Top"
            HorizontalAlignment="Left">
            <TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Run Text="Drag me,"/>
                <LineBreak/>
                <Run Text="Zoom me,"/>
                <LineBreak/>
                <Run Text="and"/>
                <LineBreak/>
                <Run Text="Click me!"/>
            </TextBlock>
            <Border.RenderTransform>
                <CompositeTransform TranslateX="100" TranslateY="100"/>
            </Border.RenderTransform>
        </Border>
    </Grid>
</UserControl>
