I have a content pane with controls inside of it. this content pane is in the panes collection of a tabgroup pane. When I try to access a item such as a grid from codebehind or any control for that matter it is always null.
<ig:ContentPane Header="Main" IsActivePane="True" AllowClose="False" AllowDocking="False" AllowDockingBottom="False" AllowDockingFloating="False" AllowDockingInTabGroupPane="False" AllowDockingLeft="False" AllowDockingRight="False" AllowDockingTop="False" AllowInDocumentHost="False" AllowPinning="False" CloseButtonVisibility="Collapsed" > <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="0"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <TextBlock Text="SO Nbr:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="0" Grid.Column="0"/> <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Sales Order Number" Grid.Row="1" Grid.Column="1" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Text="Sold To:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="0" Grid.Column="2"/> <TextBox Grid.Row="0" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Sold To Number" Grid.Row="1" Grid.Column="3" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Text="Ship To:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="0" Grid.Column="4"/> <TextBox Grid.Row="0" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Ship To Number" Grid.Row="1" Grid.Column="5" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Text="Bill To:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="0" Grid.Column="6"/> <TextBox Grid.Row="0" Grid.Column="7" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Bill To Number" Grid.Row="1" Grid.Column="7" Style="{StaticResource DefaultTextDescriptionStyle}" /> <Button Style="{StaticResource DefaultButtonStyle}" Grid.Row="0" Grid.Column="9" Width="100" Content="Split" Margin="2,2,2,2" Height="25" /> <Button Style="{StaticResource DefaultButtonStyle}" Grid.Row="1" Grid.Column="9" Width="100" Content="Change Mult" Margin="2,2,2,2" Height="25"> </Button> <TextBlock Text="SO Date:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="2" Grid.Column="0"/> <ig:XamDateTimeInput Grid.Row="2" Grid.Column="1" Margin="2,2,2,2" FontSize="12" /> <TextBlock Text="Sales Order Date" Grid.Row="3" Grid.Column="1" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBox Grid.Row="2" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBlock Grid.Row="3" Grid.Column="3" Text="Sold To Customer" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBox Grid.Row="2" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBlock Grid.Row="3" Grid.Column="5" Text="Ship To Customer" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Text="PO Nbr:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="2" Grid.Column="6"/> <TextBox Grid.Row="2" Grid.Column="7" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Purchase Order Number" Grid.Row="3" Grid.Column="7" Style="{StaticResource DefaultTextDescriptionStyle}" /> <Button Style="{StaticResource DefaultButtonStyle}" Grid.Row="3" Grid.Column="9" Content="Change Site" Height="25" Margin="2,2,2,2" /> <Button Style="{StaticResource DefaultButtonStyle}" Grid.Row="4" Grid.Column="9" Content="Exceptions" Height="25" Margin="2,2,2,2" /> <Button Style="{StaticResource DefaultButtonStyle}" Grid.Row="2" Grid.Column="9" Content="Chg Price Sht" Margin="2,2,2,2" Height="25" Width="100" /> <TextBlock Text="Status:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="4" Grid.Column="0"/> <TextBox Grid.Row="4" Grid.Column="1" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Text="Status" Grid.Row="5" Grid.Column="1" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBox Grid.Row="4" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBlock Grid.Row="5" Grid.Column="3" Text="Sold To Address" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBox Grid.Row="4" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBlock Grid.Row="5" Grid.Column="5" Text="Ship To Address" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Grid.Row="4" Grid.Column="6" Text="Req Date:" Style="{StaticResource DefaultTextBlockStyle}" /> <ig:XamDateTimeInput Grid.Row="4" Grid.Column="7" Margin="2,2,2,2" FontSize="12" /> <TextBlock Grid.Row="5" Grid.Column="7" Text="Request Date" Style="{StaticResource DefaultTextDescriptionStyle}" /> <TextBlock Text="Rush:" Style="{StaticResource DefaultTextBlockStyle}" Grid.Row="6" Grid.Column="0"/> <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1"> <RadioButton Content="Yes" GroupName="Rush" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" /> <RadioButton Content="No" GroupName="Rush" Margin="2,2,2,2" VerticalAlignment="Center" HorizontalAlignment="Center"/> </StackPanel> <TextBox Grid.Row="6" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBox Grid.Row="6" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" IsReadOnly="True" /> <TextBlock Grid.Row="6" Grid.Column="6" Text="Due Date:" Style="{StaticResource DefaultTextBlockStyle}" /> <ig:XamDateTimeInput Grid.Row="6" Grid.Column="7" Margin="2,2,2,2" FontSize="12" /> <TextBlock Grid.Row="6" Grid.Column="8" HorizontalAlignment="Right" Text="BG:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="6" Grid.Column="9" Width="100" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Grid.Row="8" Grid.Column="0" Text="Cust Type:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="1" Style="{StaticResource DefaultTextBoxStyle}" /> <HyperlinkButton Grid.Row="8" Grid.Column="2" Content="Metal:" Style="{StaticResource DefaultHyperLinkStyle}" /> <TextBox Grid.Row="8" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Grid.Row="8" Grid.Column="4" Text="Manual:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" /> <HyperlinkButton Grid.Row="8" Grid.Column="6" Content="Site:*" Style="{StaticResource DefaultHyperLinkStyle}" /> <TextBox Grid.Row="8" Grid.Column="7" Style="{StaticResource DefaultTextBoxStyle}" /> <TextBlock Grid.Row="10" Grid.Column="0" Text="EDI:" Style="{StaticResource DefaultTextBlockStyle}" /> <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="1" > <RadioButton Content="Yes" GroupName="EDI" Margin="2,2,2,2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" /> <RadioButton Content="No" GroupName="EDI" Margin="2,2,2,2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" /> </StackPanel> <TextBlock Grid.Row="10" Grid.Column="2" Text="Comex Adj:" Style="{StaticResource DefaultTextBlockStyle}" /> <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="3" > <RadioButton Content="Yes" GroupName="ComexAdj" Margin="2,2,2,2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" /> <RadioButton Content="No" GroupName="ComexAdj" Margin="2,2,2,2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" /> </StackPanel> <TextBlock Grid.Row="10" Grid.Column="4" Text="Surcharge %:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="10" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" /> <HyperlinkButton Grid.Row="10" Grid.Column="6" Style="{StaticResource DefaultHyperLinkStyle}" Content="Credit Terms:*" /> <TextBox Grid.Row="10" Grid.Column="7" Style="{StaticResource DefaultTextBoxStyle}" /> </Grid> <Rectangle Grid.Row="1" Fill="#FFb9cee6" /> <Grid Grid.Row="1"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="193" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="200" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Text="Part Substitution?" Style="{StaticResource DefaultTextBlockStyle}" /> <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" Margin="2,2,2,2"> <RadioButton Content="Yes" GroupName="PartSubstitution" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" /> <RadioButton Content="No" GroupName="PartSubstitution" Margin="2,2,2,2" VerticalAlignment="Center" HorizontalAlignment="Center"/> </StackPanel> <TextBlock Grid.Row="0" Grid.Column="2" Text="Round?" Style="{StaticResource DefaultTextBlockStyle}" /> <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="3" Margin="2,2,2,2"> <RadioButton Content="Yes" GroupName="Round" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" /> <RadioButton Content="No" GroupName="Round" Margin="2,2,2,2" VerticalAlignment="Center" HorizontalAlignment="Center"/> </StackPanel> <Button Content="Add" Grid.Row="0" Grid.Column="4" Style="{StaticResource DefaultButtonStyle}" Width="75" Margin="2,2,2,2" Click="Button_Click" /> <Button Content="Update" Grid.Row="0" Grid.Column="5" Style="{StaticResource DefaultButtonStyle}" Margin="2,2,2,2" Width="75" /> <Button Content="Delete" Grid.Row="0" Grid.Column="6" Style="{StaticResource DefaultButtonStyle}" Margin="2,2,2,2" Width="75" /> <Button Content="Detail" Grid.Row="0" Grid.Column="7" Style="{StaticResource DefaultButtonStyle}" Margin="2,2,2,2" Width="75" /> </Grid> <Grid Grid.Row="2" Visibility="Visible" x:Uid="OrderDetailGrid" x:Name="OrderDetailGrid" > <ig:XamGrid> <ig:XamGrid.FilteringSettings> <ig:FilteringSettings AllowFiltering="FilterMenu"/> </ig:XamGrid.FilteringSettings> <ig:XamGrid.SummaryRowSettings> <ig:SummaryRowSettings AllowSummaryRow="Top" SummaryScope="ChildBand" /> </ig:XamGrid.SummaryRowSettings> <ig:XamGrid.RowSelectorSettings> <ig:RowSelectorSettings Visibility="Visible"/> </ig:XamGrid.RowSelectorSettings> <ig:XamGrid.Columns> <ig:TextColumn HeaderText="Line" Key="Line" /> <ig:TextColumn HeaderText="Item Number" Key="ItemNumber" /> <ig:TextColumn HeaderText="Customer Item" Key="CustItem" /> <ig:TextColumn HeaderText="Description" Key="Description" /> <ig:TextColumn HeaderText="Site" Key="Site" /> <ig:TextColumn HeaderText="Rounded Qty" Key="RoundedKey" /> <ig:TextColumn HeaderText="PO Qty" Key="POQty" /> <ig:TextColumn HeaderText="UM" Key="UM" /> <ig:TextColumn HeaderText="ListPrice" Key="ListPrice" /> <ig:TextColumn HeaderText="Mult" Key="Mult" /> <ig:TextColumn HeaderText="Price" Key="Price" /> <ig:TextColumn HeaderText="Iss." Key="Iss" /> </ig:XamGrid.Columns> </ig:XamGrid> </Grid> <Grid Grid.Row="2" Visibility="Collapsed" Name="AddOrderDetailGrid" Background="White"> </Grid> <Grid Grid.Row="3"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Text="# of Sites:" Style="{StaticResource DefaultTextBlockStyle}" VerticalAlignment="Top" /> <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource DefaultTextBoxStyle}" Width="75" VerticalAlignment="Top" /> <TextBlock Grid.Row="0" Grid.Column="0" Margin="0,35,0,0" Text="Fill Rate (LB):" VerticalAlignment="Top" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="0" Grid.Column="1" Margin="0,35,0,0" Style="{StaticResource DefaultTextBoxStyle}" VerticalAlignment="Top" Width="75" /> <ig:XamGrid Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" Grid.ColumnSpan="18" Height="125" > <ig:XamGrid.Columns> <ig:TextColumn HeaderText="Product Category" Key="ProductCategory" /> <ig:TextColumn HeaderText="$" Key="$" /> <ig:TextColumn HeaderText="Lbs" Key="Lbs" /> <ig:TextColumn HeaderText="Qty" Key="Qty" /> <ig:TextColumn HeaderText="Conversion" Key="Conversion" /> <ig:TextColumn HeaderText="Price Dt" Key="PriceDt" /> <ig:TextColumn HeaderText="Price Sht" Key="PriceSht" /> <ig:TextColumn HeaderText="Mult" Key="Mult" /> </ig:XamGrid.Columns> </ig:XamGrid> <TextBlock Grid.Row="2" Grid.Column="0" Text="Freight Acct:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <HyperlinkButton Grid.Row="2" Grid.Column="2" Style="{StaticResource DefaultHyperLinkStyle}" Content="Trailer Code:" /> <TextBox Grid.Row="2" Grid.Column="3" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <HyperlinkButton Grid.Row="2" Grid.Column="4" Style="{StaticResource DefaultHyperLinkStyle}" Content="Freight Terms:" /> <TextBox Grid.Row="2" Grid.Column="5" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <HyperlinkButton Grid.Row="2" Grid.Column="6" Style="{StaticResource DefaultHyperLinkStyle}" Content="Ship Via:" /> <TextBox Grid.Row="2" Grid.Column="7" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <TextBlock Grid.Row="8" Grid.Column="8" Text="Non-Comm Type:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="9" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <TextBlock Grid.Row="8" Grid.Column="10" Text="Tot Price:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="11" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <TextBlock Grid.Row="8" Grid.Column="12" Text="PO Tot Price:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="13" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> <TextBlock Grid.Row="8" Grid.Column="14" Text="UnRnd Price:" Style="{StaticResource DefaultTextBlockStyle}" /> <TextBox Grid.Row="8" Grid.Column="15" Style="{StaticResource DefaultTextBoxStyle}" Width="75" /> </Grid> </Grid> </ScrollViewer> </ig:ContentPane>
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
You can use the XamDockManger's Panes Property in order to retrieve a collection with all Panes. Once you get the collection, you can get the Panes by their name. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.