tags:

views:

21

answers:

1

I have attached Event Handlers to a Border but it seems they only work when i drag over a child TextBlock

<Border BorderThickness="5" CornerRadius="20" Margin="15" BorderBrush="Black" AllowDrop="True" DragEnter="Border_DragEnter" Drop="Border_Drop">
    <TextBlock Text="Drop images here" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" FontWeight="Bold" />
</Border>
+1  A: 

Add a

Background="Transparent"

to your Border for it to receive mouse events.

Read more: http://stackoverflow.com/questions/1325008/how-to-catch-mouse-left-down-if-data-template-has-a-transparent-background

Tendlon