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">

 

 

 ...

Parents Reply
  • 865
    posted in reply to Allen

    <p>Yes, I guess I did mean pinned and unpinned. When I click on the pin with the panel expanded (visible), it collapses into the wall as expected and the tab appears on the left margin. However, when I click the tab, the panel does not expand (does not become visible). I tried using the same idea as you gave me for the other issue and added a contentpane.content wrapper for the stackpanel but that did not help.</p>
    <p>Here is the xaml:</p>
    <p>
    <UserControl x:Class="NS_MyScheduleTab.UC_MyScheduleTab"
                 xmlns="
    http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:igDock="http://infragistics.com/DockManager"
                 xmlns:igEditors="http://infragistics.com/Editors"
                 xmlns:igWindows="http://infragistics.com/Windows"
                 xmlns:igDP="http://infragistics.com/DataPresenter"
                 mc:Ignorable="d" Height="800" Width="1280">
        <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:XamDockManager.Panes>
                    <igDock:SplitPane HorizontalAlignment="Left" Name="splitPaneLeft" VerticalAlignment="Top" Height="Auto" Width="Auto">
                        <igDock:ContentPane AllowClose="False" Header="Filters" HorizontalAlignment="Left" Name="contentPaneLeft" VerticalAlignment="Top">
                            <igDock:ContentPane.Content>
                            <StackPanel Name="stackPanelLeft" HorizontalAlignment="Stretch" VerticalAlignment="Top" >
                                <Label Grid.Row="1" Grid.Column="0" Content="Selected Date / Range:" Name="lblCalendar"/>
                                <igEditors:XamMonthCalendar Name="xamMonthCalendar1" Width="280" DayOfWeekHeaderFormat="TwoCharacters" SelectedDatesChanged="xamMonthCalendar1_SelectedDatesChanged" BorderThickness="1" />
                                <Separator Height="5" Name="separator1" HorizontalAlignment="Stretch" Margin="0,10" />
                                <Label Content="Selected Date:" Name="lblSelectedDateRange" />
                                <TextBox Height="20" MinWidth="75" MaxWidth="200"  Name="txtSelectedDateRange" HorizontalAlignment="Center"/>
                                <Separator Height="5" Name="separator2" HorizontalAlignment="Stretch" Margin="0,10"/>
                                <Label  Content="Select Provider(s):" Name="lblSelectProvider"/>
                                <igDP:XamDataGrid Name="xamDataGrid3" Margin="20,0" MinWidth="200" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SelectedItemsChanged="xamDataGrid3_SelectedItemsChanged" >
                                    <igDP:XamDataGrid.FieldLayouts>
                                        <igDP:FieldLayout>
                                            <igDP:FieldLayout.Fields>
                                                    <igDP:Field Name="ProviderName" Label="ProviderName" >
                                                    </igDP:Field>
                                            </igDP:FieldLayout.Fields>
                                        </igDP:FieldLayout>
                                    </igDP:XamDataGrid.FieldLayouts>
                                </igDP:XamDataGrid>
                            </StackPanel>
                            </igDock:ContentPane.Content>
                        </igDock:ContentPane>
                    </igDock:SplitPane>
                </igDock:XamDockManager.Panes>
            </igDock:XamDockManager>
            <igWindows:XamTabControl  Name="xamTabControl1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Grid.ColumnSpan="3">
                <TabItem Header="Provider Appointments" Name="tiWorksheetInfo" HorizontalAlignment="Stretch">
                    <Grid>
                        <igDP:XamDataGrid HorizontalAlignment="Stretch" Name="xamDataGrid1" VerticalAlignment="Stretch"  RecordActivated="xamDataGrid1_RecordActivated" SelectedItemsChanging="xamDataGrid1_SelectedItemsChanging" SelectedItemsChanged="xamDataGrid1_SelectedItemsChanged"/>
                    </Grid>
                </TabItem>
                <TabItem Header="Selected Patient Appointments" Name="tiPatientInfo" HorizontalAlignment="Stretch">
                    <Grid>
                        <igDP:XamDataGrid HorizontalAlignment="Stretch" Name="xamDataGrid2" VerticalAlignment="Bottom" />
                    </Grid>
                </TabItem>
            </igWindows:XamTabControl>
        </Grid>
    </UserControl>
    </p>

    <p>Thanks.

    Allen

    </p>

Children