Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Use actiobmethods in a AvalonDock that takes Commands

$
0
0

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><StyleTargetType="{x:Type avalondock:LayoutItem}"><SetterProperty="Title"Value="{Binding Model.Title}"/><SetterProperty="CloseCommand"Value="{Binding Model.CloseCommand}"/></Style></avalonDock:DockingManager.LayoutItemContainerStyle>


Viewing all articles
Browse latest Browse all 1760

Trending Articles



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