tags:

views:

56

answers:

2

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]

+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
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