I've been trying some things using WPF, and was wondering if it was possible to detect the MouseOver trigger 'through' a label.
The code that I came up with (does not function properly):
<Border
       Height="75"
       Width="75"
       HorizontalAlignment="Center"
       VerticalAlignment="Top"
       CornerRadius="10"
       Background="#2c2c2c">
       <Border.Style>
              <Style TargetType="Border">
                   <Setter Property="Background" Value="Transparent"/>
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Background" Value="#1b1b1b"/>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
              </Border.Style>
</Border>
<Label
       Content="I'm a wannabe button!"
       Name="Button"
       MouseDown="Button_MouseDown"
       Foreground="White"
       Width="75"
       Height="75"
       HorizontalAlignment="Center"
       VerticalAlignment="Top"
       HorizontalContentAlignment="Center"
       VerticalContentAlignment="Center"
       Cursor="Hand">
</Label>
So far I haven't been able to do it, so I thought I'd just ask it here.
It's in an attempt to make a button with rounded edges; if there's any easier way to do this, please tell me!
PS. Sorry for any formatting issues, I'm pretty new to this all. Thanks in advance!
PPS. On a related note, what is the correct word for, for example, a label? Widget? Object? Just label? Thanks.
 
    