Show WPF window with WindowStyle=None and no resize -


i'm trying display window border windowstyle="none" (picture 2), without option resize it!

when set resizemode="noresize" border disappears (picture 1)

enter image description here

does know how this?

you can around setting max , min size properties same values, forcing window have fixed size. should work:

window w = new window(); w.maxheight = w.minheight = 300; w.minwidth = w.maxwidth = 400; w.windowstyle = system.windows.windowstyle.none; w.show(); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -