I'm using Dirkster AvalonDock(v4.60.1) with MVVM pattern.
Avalon Dock usually setup the LayoutUpdateStrategy as below: (In XAML)
<avalonDock:DockingManager.LayoutUpdateStrategy>
<helper:LayoutInitializer/>
</avalonDock:DockingManager.LayoutUpdateStrategy>
However, I need to change the anchorable view to Float/Hide manually through my ViewModel, therefore the way I think can be done is to create the LayoutInitializer class in my ViewModel and bind it to the XAML in order for my ViewModel to access the AvalonDock Element(eg. LayoutRoot, LayoutAnchorable, Container, etc.).
How can I create the LayoutInitializer class in my ViewModel and bind it to <avalonDock:DockingManager.LayoutUpdateStrategy>
in XAML?