1

I managed to understand a basic binding with Avalon looking into following sample: Sample code to show how to use Avalondock in an MVVM application

But I can't understand how to create a pane and place a child Document or an Anchorable on it.

From what I thought there must be some Children property in the Pane class that implements ILayoutContainer, but I can't access it.

<avalon:DockingManager x:Name="DockManager" 
                           Grid.Row="2" 
                           BorderBrush="Black"
                           Margin="3"
                           Background="#FFFDFDFD"
                           BorderThickness="0"
                           AllowMixedOrientation="True" 
                           DocumentsSource="{Binding Documents}"
                           AnchorablesSource="{Binding Anchorables}">

That code allows me to bind Documents and Anchorables, but not panes. Basically, I want to bind panes to some property in a docking-manager-view-model and bind documents/anchorables to a collection in a pane-view-model.

dymanoid
  • 14,771
  • 4
  • 36
  • 64

0 Answers0