passing the current Window as a CommandParameter

Viewed 26660

how can I pass the window I am currently on as a parameter to a command?

I like to do this in XAML-markup:

<Button Command="CommandGetsCalled" CommandParameter="-this?-" />
3 Answers
Related