Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Add User Control to DocumentHost
posted

Hi 

How can I add I UserControl or a Page to a DocumentHost to a xamdockmanager.  So that I can open UserControl or page in the dock? 

Parents
No Data
Reply
  • 140
    Offline posted

    Hello Thomas,

    You can add a user control by simply adding it to the content section of your content pane within the DocumentContentHost like so.

    <Grid Name="layoutRoot">
            <igDock:XamDockManager>                      
                <igDock:DocumentContentHost>               
                    <igDock:SplitPane>                    
                        <igDock:TabGroupPane>
                            <igDock:ContentPane Header="TextBox">
                                <TextBox />
                            </igDock:ContentPane>
                            <igDock:ContentPane Header="user control">
                                <local:MyUserControl />
                            </igDock:ContentPane>
                        </igDock:TabGroupPane>
                    </igDock:SplitPane>
                </igDock:DocumentContentHost>
            </igDock:XamDockManager>
        </Grid>
    
     

    Regards.

    Nicholas

Children
No Data