How to hide close button in WPF window?

I’m writing a modal dialog in WPF. How do I set a WPF window to not have a close button? I’d still like for its WindowState to have a normal title bar.

I found ResizeMode, WindowState, and WindowStyle, but none of those properties allow me to hide the close button but show the title bar, as in modal dialogs.

22 Answers
22

Leave a Comment