I hava a User control and in that user control one button.
On click on that button i need to pass the entire view through command paramter.
How can i pass the view through command paramter?
I hava a User control and in that user control one button.
On click on that button i need to pass the entire view through command paramter.
How can i pass the view through command paramter?
If I remember the right way (and you want to bind to your current Window instance), it should be
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}}"