<Window x:Class="MouseEvents.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="300" Width="300">
    <DockPanel Background="Transparent" MouseMove="DockPanel_MouseMove" >
        <StatusBar DockPanel.Dock="Bottom">
            <TextBlock x:Name="textBlock"/>
        </StatusBar>
        <Button Margin="50" x:Name="button"/>
    </DockPanel>
</Window>
