I am looking for a simple way to lock a WPF window. Is there a simple window style or property I can set on a WPF window to locked the window. By lock I mean the user can not move, resize, drag, minimize or maximize the window. If anyone has some source code or a project that does this please feel free to email the code at [email protected]
views:
56answers:
2
+5
A:
Setup the window with:
window.WindowStyle = WindowStyle.None;
window.ResizeMode = ResizeMode.NoResize;
This will prevent the user from minimizing, maximizing, or moving the Window.
Reed Copsey
2010-08-05 23:31:32
A:
THe window needs to the caption tile bar with the X button to close the window. The WindowStyle.None removes the caption tilebar. How would I handle the event the is clicked on the caption title bar itself?
steve
2010-08-06 03:09:39