how can I pass the window I am currently on as a parameter to a command?
I like to do this in XAML-markup:
In my situation none of the provided answers worked.
This worked for me: