0

How can I achieve an overlay, similar to the one you can see in the picture linked below, using C# and WPF?

EA Origin overlay example

Thanks in advance

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Sebastian Krogull
  • 1,468
  • 1
  • 15
  • 31
  • Isn't that just a window shown when you mouse over? Capture on mouse enter/leave of where you want it to spawn from and show/hide the window on event. – JeremyK Feb 04 '12 at 16:37
  • I don't exactly know if it's just a new window, I'd like it to be transparent where the control beneath is. – Sebastian Krogull Feb 05 '12 at 15:45

2 Answers2

0

Try looking at the Popup Class. Your other option would be to create a custom UserControl.


After reading your comment you may want to look at this SO answer it discusses using CombinedGeometry's to create something like you are looking for.

Community
  • 1
  • 1
Mark Hall
  • 53,938
  • 9
  • 94
  • 111
0

If you want to set a window to transparent just do either of the following: Window.Background="Transparent", or Opacity="0". As far as how it pops up, either handle mouse enter yourself or set it up as a popup

JeremyK
  • 1,075
  • 1
  • 22
  • 45
  • In your window code, this.Opacity = value; // 0.0 - 1.0 (double) this.Background = Brushes.Transparent; – JeremyK Feb 09 '12 at 17:21