2
votes

I need to hide the window completely and not allow it to be double-clicked to be maximized, as that changes the window to be resizable despite the ResizeMode being set to NoResize and WindowStyle set to None. That double click seems to change the settings irreversibly (the window edges are always adjustable after that double click), and that is unnacceptible in this case - I need it to either not be double clickable, or, preferrably, completely invisible when it's minimized.

Thanks for the help!

1
Maybe I am missing something, but how can it still be visible and clickable when it is hidden? What .NET and Windows version are you using?Nemanja Banda

1 Answers

3
votes

You should be using Collapsed instead of Hiddenon your Visibility setting.

Here's the documentation on what's the difference between the two: https://msdn.microsoft.com/en-us/library/system.windows.visibility(v=vs.110).aspx