问题
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.
回答1:
Relevant properties to set on the window:
- AllowsTranparency ->
true
- WindowStyle ->
None
- ResizeMode ->
NoResize
- WindowState ->
Maximized
- Topmost ->
true
- IsHitTestVisible ->
false
(This alone won't do, you need some OS interop)
来源:https://stackoverflow.com/questions/9314600/window-hud-behavior-pass-through-clicks-cant-be-minimized