wpfresizewindowless

wpf windowstyle none border style


I have wpf application I'm using WindowStyle none and I'm adding window controls by my self ( minimize, close )

but WindowStyle none still has window resize border

window resize border is fine but I want to style it to look same in windows xp , vista , 7

I saw solution setting noresize but i need window to be normally resizeable ( without resize grip )


Solution

  • If you set WindowsStyle to none, and you want to remove resize border you must build a custom resize window.

    Read this article. It will help you. The idea is that you a bunch of handles around the window and handle the resize events with the SendMessage() API call in user32.dll.

    There are nice code examples. Hope that I helped you.