Andreas Andreas - 1 month ago 26
C# Question

avalon dock auto hide crash application

This is my very simple Layout in a DockPanel:

...

<xcad:LayoutRoot x:Name="LayoutRoot">
<xcad:LayoutPanel Orientation="Horizontal">
<xcad:LayoutDocumentPaneGroup>
<xcad:LayoutDocumentPane/>
</xcad:LayoutDocumentPaneGroup>

<xcad:LayoutAnchorablePaneGroup DockWidth="250">
<xcad:LayoutAnchorablePane>
<xcad:LayoutAnchorable Title="Properties">
<Grid>
</Grid>
</xcad:LayoutAnchorable>
</xcad:LayoutAnchorablePane>
</xcad:LayoutAnchorablePaneGroup>

</xcad:LayoutPanel>
</xcad:LayoutRoot>

...


When running the app it shows a nice window with an empty "Properties" panel to the right. I can unpin it and it will hide. All nice and easy. However, when I try to unhide the panel, my app goes into break mode...

I use VisualStudio 2015 Community with C#6 language features and .NET 4.5.2, WPF Extended Toolkit 2.9

Any ideas what I do wrong?

Answer

After debugging into the WPF Extended Toolkit I found the place that causes the problem. Now, equipped with the right questions I was able to make Google answer my question.

This question is a duplicate. The solution can be found here:

http://stackoverflow.com/a/37905416/558239