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

New Post: [Version 2.0] Handling Tab closure

$
0
0

Hi Ado,
Any advice on how the ViewModel can be informed of Tab closing?
Currently I can use DockManager.DocumentClosing, but that needs AvalonDock.DocumentClosingEventArgs to get Document.Content, which means the ViewModel needs a refence to AvalonDock

In fact, each of my Tabs is a ViewModel and View (Caliburn Micro's way) so ideally the close button on each tab should inform it's own ViewModel, so a decision as to which is closing is not needed

thanks
John


Viewing all articles
Browse latest Browse all 2690

Trending Articles



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