DockableContent Title does not show up in the botton tab footer

Jun 6, 2012 at 2:31 AM

I created a new list control, which I do have xaml like this:

<ad:DockableContent x:Class="SIMind.ClinicManagement.GUI.Controls.EntityListCtrl"
             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"
             Title="Patient View"
             MinHeight="400" MinWidth="300" 
                    >
   <Grid Margin="2" Name="gridPatientList">
      <Grid.RowDefinitions>
         <RowDefinition Height="32" />
         <RowDefinition Height="4*"/>
         <RowDefinition Height="*" MinHeight="50" MaxHeight="120" />
      </Grid.RowDefinitions>
      <ListView Grid.Row="1" HorizontalAlignment="Stretch" Margin="2" Name="listViewEntities" VerticalAlignment="Stretch" Background="Azure"></ListView>
      <StackPanel Grid.RowSpan="1" HorizontalAlignment="Stretch" Margin="2" Name="stackPanel1" VerticalAlignment="Stretch">
         <StackPanel.Background>
            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
               <GradientStop Color="DarkGray" Offset="0" />
               <GradientStop Color="White" Offset="1" />
            </LinearGradientBrush>
         </StackPanel.Background>
      </StackPanel>
      <TextBlock Grid.Row="2" HorizontalAlignment="Stretch" Margin="2" Name="blockPatientInfo" Text="Entity Information" VerticalAlignment="Stretch" Foreground="CadetBlue" FontWeight="Normal"><TextBlock.Background><LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"><GradientStop Color="#51A9A9A9" Offset="0" /><GradientStop Color="White" Offset="1" /></LinearGradientBrush></TextBlock.Background></TextBlock>
   </Grid>
</ad:DockableContent>

When I use it, I have code like following:

         EntityListCtrl pListCtrl = new EntityListCtrl(typeof(Patient));
         pListCtrl.Title = "Patient List";
         pListCtrl.Name = "PatientList";
         pListCtrl.Show(dockMgr, AnchorStyle.Left);


         EntityListCtrl sListCtrl = new EntityListCtrl(typeof(Patient));
         sListCtrl.Title = "Doctor List";
         sListCtrl.Show(dockMgr, AnchorStyle.Left);


I am not sure why, the title shows up in the window title bar, but at the botton, it shows blank in the Tab bar.

Any body has an idea why?


Thanks in advance.