Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [Version 2.0] Handling Tab closure

$
0
0

Maybe I am not understanding you properly but....

Workspace is a ViewModel - it derives from ViewModelBase and is set as the DataContext for MainWindow.xaml.

In the code example above:

"(LayoutDocument)parameter" is the View object (or tab) being closed.
"((LayoutDocument)parameter).Content" is the ViewModel object being closed.


Steve

Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>