Home Forums WPF controls Xceed Toolkit Plus for WPF Use Visual Studio Xaml Designer to create a AvalonDock LayoutDocument

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Nasheayah
    Participant
    Post count: 4
    #44680 |

    Hi,

    I have the latest version and I’ve searched the internet and all the hits used:

    <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″

    <Grid>
    <!– content –>
    </Grid>

    </ad:LayoutDocument>

    from the 2014 year, but I’m unable to use it with the current version because its only allowing me the LayoutDocumentControl which I get a error saying I can’t add content:

    <xcad:LayoutDocumentControl
    x:Class=”ClassLibrary.AvalonDockHost.Views.ExcelDocumentView”
    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:local=”clr-namespace:ClassLibrary.AvalonDockHost.Views”
    xmlns:xcad=”http://schemas.xceed.com/wpf/xaml/avalondock”
    mc:Ignorable=”d”
    d:DesignHeight=”300″ d:DesignWidth=”300″>
    <Grid>

    </Grid>
    </xcad:LayoutDocumentControl>

    Is this no longer possible or what is the correct way?

    Thanks!…

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    The “LayoutDocument” is a “LayoutContent”, with a “Content” property.
    The “LayoutDocumentControl” is a “Control”, without a “Content” property.

    When using a “LayoutDocumentControl”, you can set its “Model” property, which is a “LayoutContent”. For example :

    <xcad:LayoutDocumentControl>
    <xcad:LayoutDocumentControl.Model>
    <xcad:LayoutDocument >
    <Grid>
    <!– content –>
    </Grid>
    </xcad:LayoutDocument>
    </xcad:LayoutDocumentControl.Model>
    </xcad:LayoutDocumentControl>

    But it will need a LayoutRoot to work.

    The usual way of defining a LayoutDocument is through the following hierarchy :

    <xcad:DockingManager>
    <xcad:LayoutRoot>
    <xcad:LayoutPanel>
    <xcad:LayoutDocumentPaneGroup>
    <xcad:LayoutDocumentPane>
    <xcad:LayoutDocument>
    <Grid>
    <!– content –>
    </Grid>
    </xcad:LayoutDocument>
    </xcad:LayoutDocumentPane>
    </xcad:LayoutDocumentPaneGroup>
    </xcad:LayoutPanel>
    </xcad:LayoutRoot>
    </xcad:DockingManager>

    Nasheayah
    Participant
    Post count: 4

    Hi Fawzi,

    I apologize for the very late thanks for the reply due to reverted to another project that consumed so much of my time from this one. My next question is, how do I derive my class since there’s six levels before creating the content?

    And, would there be a good example somewhere you can link me too?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.