0

I'd like to write a simple HUD style application using WPF (if I'm using the wrong technology, I'll take suggestions).

As a simple example, I'd to place text along the top of the screen like "Library Computer" that ignores all clicks (ie doesn't effect the rest of Windows) but is always on top and can't be minimized.

H.B.
  • 166,899
  • 29
  • 327
  • 400
Ternary
  • 2,401
  • 3
  • 31
  • 54

1 Answers1

1

Relevant properties to set on the window:

Community
  • 1
  • 1
H.B.
  • 166,899
  • 29
  • 327
  • 400
  • Great tips! I also added ShowInTaskbar="False" which gets me my desired effect *except* as soon as I click anything else, it goes behind. :/ – Ternary Feb 16 '12 at 16:20
  • Really? Hmm. I put some task on top of the task bar and it looked fine but when I click the task bar it goes behind (I can see it blurred out behind the aero task bar). – Ternary Feb 16 '12 at 16:29
  • @Ternary: You are right, some windows components seem to ignore it, you might need to look for a more low level approach than WPF windows... – H.B. Feb 16 '12 at 16:33
  • @Ternary: By the way, do you get clicks to pass through? If not see [this question](http://stackoverflow.com/q/2842667/546730). – H.B. Feb 16 '12 at 16:37
  • Thanks! That definitely works to allow the cursor to go "through" the text. Now if I can just prevent the window from losing focus and going into the background I think I'm set! – Ternary Feb 16 '12 at 17:33