Use actiobmethods in a AvalonDock that takes Commands

Jan 27, 2013 at 10:22 PM

I'm working on integrating AvalonDock in my Caliburn.Micro application.

AvalonDock uses as some command Properties that triggers when a Docking panel is closed for example, I need to map these commands to Action methods on the model instead (That return IResults)

I havent found any rock solid info on google how to do this without implementing Commands on my model

Relevant XAML

            <avalonDock:DockingManager.LayoutItemContainerStyle>
                <Style TargetType="{x:Type avalondock:LayoutItem}">
                    <Setter Property="Title" Value="{Binding Model.Title}" />
                    <Setter Property="CloseCommand" Value="{Binding Model.CloseCommand}"/>
                </Style>
            </avalonDock:DockingManager.LayoutItemContainerStyle>