How I can bind one of my buttons on control to X Button that closes the window ? I just want to create cancel button that just closes the window. I am using MVVM in my code.
Install Microsoft.Expression.Interactions by nugget and use the answer gived by Chris W. above.