1
Answer

Changing the x button functionality in WPF window

Photo of gil elgrably

gil elgrably

13y
11.3k
1
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.
 

Answers (1)