How to create a custom DockableContent ?

Aug 31, 2009 at 10:23 AM
Edited Aug 31, 2009 at 10:24 AM

Hi,

 

I'm trying to create a custom DockableContent. I read this thread:

http://avalondock.codeplex.com/Thread/View.aspx?ThreadId=41900

So, I created a UserControl, replaced base class UserControl to DockableContent and it works.

BUT, when it displayed, the selection button of my custom DockableContent is invisible: title is displayed in title bar when this DockableContent is selected but not on the tab button...

 

Custom DockableContent:

<ad:DockableContent x:Class="Contents.DockableBeaconsFlatList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
    Height="300" Width="300">
    
    <DockPanel>
        <TextBox Text="Test"/>
    </DockPanel>
</ad:DockableContent>

DockManager:

<ad:DockingManager x:Name="dockManager">
            <ad:ResizingPanel Orientation="Horizontal" Name="resizePanel1">
                    <ad:DockablePane Name="ListPane">
                        <ct:DockableBeaconsFlatList Title="List"/>

</ad:DockablePane>
</ad:ResizingPanel>
</ad:DockingManager>

Where is my error ?

 

 

Thanks

Sep 4, 2009 at 12:35 PM

Try to remove the width/height info on the custom class.

Ado

Sep 4, 2009 at 2:31 PM

Thanks adospace, it works.