Can I get the information if the window is currently docked?

Aug 1, 2012 at 4:10 PM
Edited Aug 1, 2012 at 5:58 PM

Hi,

first of all I would like to thank the creators for this library. It looks very promising for me. Especially I like (and need) the feature that the AvalonDock windows supports WindowsFormsHost controls.

Now to my question:
I would like to know if I can bind to the information if a LayoutItem is in a window which is currently docked (or floated)

Analogous to your donload samples the code could like below:
<Style TargetType="{x:Type avalonDock:LayoutItem}">
  ...
  <Setter Property="IsDocked" Value="{Binding Model.IsDocked}"/>
</Style>
But there is no IsDocked property...

Best Regards
Frank

Aug 2, 2012 at 10:06 AM

At moment the IsDocked property is not available outside to the LayoutItem, probably in the future it will be. For now I guess you can achive the same effect using an adapter, Ado