Disable maximizing WPF window on double click on the caption -
how disable maximizing wpf window on double click on caption , leave resizing available?
i know resizemode disables maximizing, prevents resizing form
resizemode="canminimize"
i know how remove maximize , minimize buttons, it's still possible maximize double click on caption.
in winforms can achieved easily. set formborderstyle none fixedsingle or fixed3d. it's not option in wpf more.
p.s. i'm trying tricks handling wm_getminmaxinfo, wm_syscommand, etc. seems it's not working...
i had similar issue. window not have form border or title bar, can moved around (using mouse). problem if user moves window top edge of screen, windows automatically maximizes window.
i managed work around issue attaching following handler window's statechanged
event.
private void onwindowstatechanged(object sender, eventargs e) { if (this.windowstate == windowstate.maximized) { this.windowstate = windowstate.normal; } }
Comments
Post a Comment