I've designed a custom window with "WindowStyle = None" and "AllowsTransparency = True". I've added custom buttons to implement minimize, maximize/restore and close features. I also have a transparent rectangle that I use to implement maximize/restore on double clicking the title bar region(which is also custom built) Here's the code for maximizing/restoring on double clicking the title bar region
(this.WindowState) = (this.WindowState == WindowState.Normal) ? WindowState.Maximized : WindowState.Normal;
I wanted to add an image which exactly describes my issue, but stackoverflow doesn't allow me to. I don't know why. I'm new to this page.