Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not that familiar with WPF and especially AvalonDock. I did it like this and it works so far :) <br><br> You can write a separate class for your documents that inherits from LayoutDocument. In that way you should be able to edit the standard layout of your "Project-Document" with the VisualStudio Designer (add your stackpanel, canvas etc.). <br><br> (I assume that you have a standard way of displaying your "Project-Document". Otherwise you could build the content yourself in code behind like you would do in WPF and put it inside the LayoutDocument.)</p> <p>For example:</p> <pre><code>&lt;ad:LayoutDocument x:Class="Namespace.MyDocument" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ad="http://avalondock.codeplex.com" d:DesignHeight="500" d:DesignWidth="800" &lt;Grid&gt; &lt;!-- content --&gt; &lt;/Grid&gt; &lt;/ad:LayoutDocument&gt; </code></pre> <p><br> And the class in code behind that inherits from LayoutDocument:</p> <pre><code>namespace Namespace { public partial class MyDocument : AvalonDock.Layout.LayoutDocument { // ... } } </code></pre> <p><br> <br> To create and add a new document you just instantiate a new MyDocument object and add it to the collection via binding or something like <code>layoutDocumentPane.Children.Add(doc)</code>.</p> <p><br> I don't know about the binding for the Title Property, though.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload