wpf - Passing 'this' from view to viewmodel -


i have button which, when clicked, should open new window modal window. thinking of passing this xaml , in viewmodel, have got parentwindow window.getwindow(parameter). there equivalent this in xaml?

unless in disconnected context can pass window using relativesource binding ancestortype=window.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -