Home > DeveloperSection > Forums > WPF: Opacity and the MouseEnter Event.
shreesh chandra shukla
shreesh chandra shukla

Total Post:105

Posted on    July-15-2013 8:25 AM


 0 Reply(s)
 1133  View(s)
Rate this:
Hi developers!

c# wpf mouseevent opacity

As part of a diagram, I am drawing a few overlapping Shapes, each with Opacity=0.5, like here:

    <Rectangle Fill="Blue" Opacity="0.5" MouseEnter="Rectangle_MouseEnter" />
    <Rectangle Fill="Red" Opacity="0.5" />
private void Rectangle_MouseEnter(object sender, MouseEventArgs e)

When the user enters the shape with the mouse, some additional information should be displayed, but the event handler never gets called.

Is there a way to get MouseEnter events for all Shapes, instead of just the topmost one?

Don't want to miss updates? Please click the below button!

Follow MindStick