<Window x:Class="RoutedEvent_Sample1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="RoutedEvent_Sample1" Height="450" Width="800" 
        PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF3A3434" Offset="0"/>
            <GradientStop Color="#FF9C9C9C" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>

    <Grid PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Button Margin="10" Height="70" Width="200" PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight">
            <StackPanel Orientation="Horizontal" PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight">
                <Image Source="smile.gif" Stretch="None" Margin="5" PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight"/>
                <Label FontSize="18" VerticalAlignment="Center" PreviewMouseRightButtonDown="PreviewMouseRight" MouseRightButtonDown="MouseRight">OK</Label>
            </StackPanel>
        </Button>
        <ListBox Grid.Row="1" Name="lstBox" Margin="5" />
        <Button Grid.Row="2" FontSize="14" Width="140" HorizontalAlignment="Right" Margin="5" Click="Button_Click">Liste löschen</Button>
    </Grid>
</Window>

