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
865
Content Pane header controls grayed out
posted

Using version 20091.2056; writing in C#.

I'm using a ContentPane and for some reason if I try to add it via the designer, I end up with a control that has the header controls grayed out meaning I can't unpin or close the control. 

If I create the components via code, I don't have the issue but I run into other time-consuming situations trying to do the entire layout via code. Would prefer not to have some of each either. Would like to lay it out in the designer.

Below are the controls up to and including the ContentPane. Any ideas what I'm doing wrong or if this is a bug and how to work around it?

Also, I really don't want the close button to be functional so would like to know how to access both to enable/disable via source. How to do that?

Thanks.

Allen

 <Grid Name="layoutRoot" Loaded ="Grid_Loaded" >

 

<Grid.ColumnDefinitions > <ColumnDefinition Width ="Auto" />

 

 

 

 

 

 

 

<ColumnDefinition Width ="Auto" />

 

<ColumnDefinition Width ="Auto" />

 

<ColumnDefinition Width ="*" />

 

</Grid.ColumnDefinitions >

 

<igDock:XamDockManager Name="xamDockManager1" Grid.Column ="0" >

 

<igDock:SplitPane HorizontalAlignment="Left" Name="splitPaneLeft"   VerticalAlignment="Top" Height="Auto" Width="Auto">

 

<igDock:ContentPane IsEnabled="True" AllowClose="False" Header="Filters" HorizontalAlignment="Left" Name="contentPaneLeft" VerticalAlignment="Top" AllowDockingLeft="True" AllowFloatingOnly="True">

 

 

 ...

  • 54937
    Verified Answer
    Offline posted

    allenovereem said:

    Below are the controls up to and including the ContentPane. Any ideas what I'm doing wrong or if this is a bug and how to work around it?

    You're adding the SplitPane as the Content of the XamDockManager - the XamDockManager is a ContentControl and its ContentPropertyAttribute is still the Content. Wrap the SplitPane(s) in a <igDock:XamDockManager.Panes></igDock:XamDockManager.Panes>

     

    allenovereem said:

    Also, I really don't want the close button to be functional so would like to know how to access both to enable/disable via source. How to do that?

    You can set the AllowClose property on the ContentPane to false. Later (v10.1) we also added a CloseButtonVisibility to make it easier to hide the button in the PaneHeaderPresenter. If you want to remove it completely you'll need to retemplate the PaneHeaderPresenter. You can copy the style from the DefaultStyles directory on your system and use that as a starting point for your own custom header.