Changing the x button functionality in WPF window
Hi all,
I want to change the x button functionality in my WPF window.
I want that when the user will press the x button on the top right corner of the window it will cause the window to hide (and not to close itself as shuold be).
I will very appreciate if could add a code (XAML/C#) that to that or alternately refer me to the sulotion.
Thank you so much,
Gil.