This project is read-only.

ContentTemplate for DocumentContent

Apr 21, 2011 at 7:03 PM

Hello AvalonDock fellows,

I would like to use only a one content, say TextBox,  in more DocumentContents of DocumentPane as shown in the example below for normal TabControl, please a hint how to do it?


      <TabControl>
           
            <TabControl.ContentTemplate>
                <DataTemplate>
                    <TextBox Text="Hello" AcceptsReturn="True"/>
                </DataTemplate>
            </TabControl.ContentTemplate>


            <TabItem Header="Header_1"></TabItem>
            <TabItem Header="Header_2"></TabItem>
            <TabItem Header="Header_3"></TabItem>      

    </TabControl>
      

Thanks.