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
180
XamDockManager stops working when the child of a ScrollViewer
posted

For some odd reason I built a very complex User Interface and for some reasons XamDockManager does not work when placed inside a scrollviewer. below is my code.

  <Grid x:Name="LayoutRoot" Margin="2" >
        <toolkit:BusyIndicator IsBusy="{Binding IsModelBusy}" BusyContent="{Binding BusyContent}" Foreground="#FF87AAD0" DisplayAfter="0:0:0.2">
                <Grid>
                    <Grid.RowDefinitions>
                        <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 />
                        </Grid.RowDefinitions>
                        <TextBlock Grid.Row="0" Foreground="Black" FontSize="24" FontStyle="Italic" FontFamily="Georgia" Text="Credit Review Details" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>
 
                        <TextBlock Grid.Row="1" Text="ID:" FontSize="12" Foreground="Black" Margin="5,5,5,5"/>
                        <TextBlock HorizontalAlignment="Center" Grid.Row="1" Text="Originator:" FontSize="12" Foreground="Black" Margin="5,5,5,5"/>
                        <TextBlock HorizontalAlignment="Right" Grid.Row="1" Text="Date Created:" FontSize="12" Foreground="Black" Margin="5,5,5,5"/>
 
                        <Border Grid.Row="2" Padding="5,5,5,5" Margin="5,5,5,5" BorderBrush="White" BorderThickness="3">
                            <Grid >
                                <Grid.RowDefinitions>
                                    <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 Grid.Column="0" Grid.Row="0"   VerticalAlignment="Center" Foreground="Black" Text="SO #:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="0" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.SoNumber}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="0" Grid.Row="1"  VerticalAlignment="Center" Foreground="Black" Text="SO Date:" Margin="2,2,2,2" FontSize="13"/>
                                <ig:XamDateTimeInput Grid.Row="1" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}"   Value="{Binding Path=CRD.SoDate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="0" Grid.Row="2"  VerticalAlignment="Center" Foreground="Black" Text="Required Date:" Margin="2,2,2,2" FontSize="13"/>
                                <ig:XamDateTimeInput Grid.Row="2" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Value="{Binding Path=CRD.DueDate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="0" Grid.Row="3"  VerticalAlignment="Center" Foreground="Black" Text="Due Date:" Margin="2,2,2,2" FontSize="13"/>
                                <ig:XamDateTimeInput Grid.Row="3" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Value="{Binding  Path=CRD.DueDate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="0" Grid.Row="4"  VerticalAlignment="Center" Foreground="Black" Text="Pricing Date:" Margin="2,2,2,2" FontSize="13"/>
                                <ig:XamDateTimeInput Grid.Row="4" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Value="{Binding Path=CRD.PricingDate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="0" Grid.Row="5"  VerticalAlignment="Center" Foreground="Black" Text="Buying Group:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="5" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BuyingGroup}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="0"  VerticalAlignment="Center" Foreground="Black" Text="Sold To:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="0" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToNumber}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="1"  VerticalAlignment="Center" Foreground="Black" Text="Sold To Address 1:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="1" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToAddress1}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="2"  VerticalAlignment="Center" Foreground="Black" Text="Sold To Address 2:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="2" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToAddress2}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="3"  VerticalAlignment="Center" Foreground="Black" Text="Sold To City:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="3" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToCity}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="4"  VerticalAlignment="Center" Foreground="Black" Text="Sold To Zip:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="4" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToZip}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="2" Grid.Row="5"  VerticalAlignment="Center" Foreground="Black" Text="Sold To State:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="5" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SoldToState}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="0"  VerticalAlignment="Center" Foreground="Black" Text="Bill To:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="0" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToNumber}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="1"  VerticalAlignment="Center" Foreground="Black" Text="Bill To Address 1:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="1" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToAddress1}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="2"  VerticalAlignment="Center" Foreground="Black" Text="Bill To Address 2:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="2" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToAddress2}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="3"  VerticalAlignment="Center" Foreground="Black" Text="Bill To City:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="3" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToCity}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="4"  VerticalAlignment="Center" Foreground="Black" Text="Bill To Zip:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="4" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToZip}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="4" Grid.Row="5"  VerticalAlignment="Center" Foreground="Black" Text="Bill To State:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="5" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToState}"  Margin="2,2,2,2" FontSize="12"/>
 
 
                                <TextBlock Grid.Column="6" Grid.Row="0"  VerticalAlignment="Center" Foreground="Black" Text="Freight Terms:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="0" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.FreightTerms}"  Margin="2,2,2,2" FontSize="12"/>
 
                            <HyperlinkButton Foreground="#FF87AAD0" Command="{Binding SelectCreditTermsCommand,Mode=TwoWay,UpdateSourceTrigger=Default}" Grid.Column="6" Grid.Row="1"  VerticalAlignment="Center"  Content="Credit Terms:" Margin="2,2,2,2" FontSize="13"/>
                                <sdk:AutoCompleteBox IsEnabled="{Binding Path=SecurityContext.IsCreditTermsVisible}" IsTextCompletionEnabled="True" FontSize="13" Margin="2,2,2,2" Grid.Column="7" Grid.Row="1" ValueMemberPath="terms" ItemsSource="{Binding CreditTerms}" Text="{Binding Path=CRD.CreditTerms, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                                    <sdk:AutoCompleteBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <Image Source="/App.CreditReview;;component/Images/CreditCard16.png" />
                                                <TextBlock Text="{Binding terms}" Margin="5,5,5,5"/>
                                                <TextBlock Text="{Binding DESCRIPTION}" Margin="5,5,5,5"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </sdk:AutoCompleteBox.ItemTemplate>
                                </sdk:AutoCompleteBox>
 
 
                                <TextBlock Grid.Column="6" Grid.Row="2"  VerticalAlignment="Center" Foreground="Black" Text="Rush:" Margin="2,2,2,2" FontSize="13"/>
                                <CheckBox Content="Yes/No" Grid.Row="2" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}" IsChecked="{Binding Path=CRD.Rush}"  Foreground="Black"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="6" Grid.Row="3"  VerticalAlignment="Center" Foreground="Black" Text="PO Total Price:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="3" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.POTotalPrice}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="6" Grid.Row="4"  VerticalAlignment="Center" Foreground="Black" Text="PO NBR:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="4" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.PONumber}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="6" Grid.Row="5"  VerticalAlignment="Center" Foreground="Black" Text="SalesPerson:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="5" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.SalesPerson}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="8" Grid.Row="0"  VerticalAlignment="Center" Foreground="Black" Text="Bill To CSR:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="0" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.BillToCSR}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="8" Grid.Row="1"  VerticalAlignment="Center" Foreground="Black" Text="Sold To CSR:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="1" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.SoldToCSR}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="8" Grid.Row="2"  VerticalAlignment="Center" Foreground="Black" Text="Credit Assoc:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="2" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsCreditAssocVisible}" Text="{Binding Path=CRD.CreditAssoc}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="8" Grid.Row="3"  VerticalAlignment="Center" Foreground="Black" Text="Site:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="3" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.Site}"  Margin="2,2,2,2" FontSize="12"/>
 
                                <TextBlock Grid.Column="8" Grid.Row="4"  VerticalAlignment="Center" Foreground="Black" Text="Total Price:" Margin="2,2,2,2" FontSize="13"/>
                                <TextBox Grid.Row="4" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.TotalPrice}"  Margin="2,2,2,2" FontSize="12"/>
 
                            </Grid>
                        </Border>
                        <StackPanel Grid.Row="3" HorizontalAlignment="Left" Orientation="Horizontal" Margin="5,5,5,5">
                            <HyperlinkButton Command="{Binding SaveCommand}" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/Save16.png" />
                                    <TextBlock FontSize="15" Text="Save" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                            <HyperlinkButton Command="{Binding UndoCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/Undo16.png" />
                                    <TextBlock FontSize="15" Text="Undo" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                            <HyperlinkButton Command="{Binding ApproveOrderCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/RubberStamp16.png" />
                                    <TextBlock FontSize="15" Text="Approve" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                            <HyperlinkButton Command="{Binding SendToCSRCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/Send16.png" />
                                    <TextBlock FontSize="15" Text="Send To CSR" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                        </StackPanel>
                        <StackPanel Grid.Row="3" HorizontalAlignment="Right" Orientation="Horizontal" Margin="5,5,5,5">
                            <HyperlinkButton Command="{Binding HistoryCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/Cabinet16.png" />
                                    <TextBlock FontSize="15" Text="History" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                            <HyperlinkButton Command="{Binding ShowNotesCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5" Background="Transparent">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/Receipt16.png" />
                                    <TextBlock FontSize="15" Text="Notes" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                            
                            <HyperlinkButton Command="{Binding HelpCommand}" Margin="5,0,0,0" BorderBrush="White" BorderThickness="5">
                                <StackPanel Orientation="Horizontal">
                                    <Image Margin="2,2,2,2" Source="/App.CreditReview;component/Images/MessageBalloon16.png" />
                                    <TextBlock FontSize="15" Text="Help" Foreground="Black" />
                                </StackPanel>
                            </HyperlinkButton>
                        </StackPanel>
                        <ig:XamDockManager Grid.Row="4" Margin="5,2,5,0" UnpinnedTabHoverAction="None">
                            <ig:DocumentContentHost>
                                <ig:DocumentContentHost.Panes>
                                    <ig:TabGroupPane >
                                        <ig:ContentPane Header="Main" IsActivePane="True" AllowClose="False">
                                            <Grid>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto"/>
                                                    <RowDefinition />
                                                </Grid.RowDefinitions>
                                                <Grid Grid.Row="0">
                                                    <Grid.RowDefinitions>
                                                        <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 Grid.Column="0" Grid.Row="0"  VerticalAlignment="Center"  Text="High Date:" Margin="2,2,2,2" FontSize="13"/>
                                                    <ig:XamDateTimeInput Grid.Row="0" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.HighDate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="0" Grid.Row="1"  VerticalAlignment="Center"  Text="Credit Limit:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="1" Grid.Column="1" IsEnabled="{Binding Path=SecurityContext.IsVisible}"  Text="{Binding Path=CRD.CreditLimit}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="2" Grid.Row="0"  VerticalAlignment="Center"  Text="AP PD Late:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="0" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.ApDpLate}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="2" Grid.Row="1"  VerticalAlignment="Center"  Text="High Credit:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="1" Grid.Column="3" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.HighCredit}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="4" Grid.Row="0"  VerticalAlignment="Center"  Text="Surcharge%:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="0" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.SurchargePercentage}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="4" Grid.Row="1"  VerticalAlignment="Center"  Text="Ords+AR Bal:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="1" Grid.Column="5" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.OrdsArBalance}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="6" Grid.Row="0"  VerticalAlignment="Center"  Text="Past Due Bal:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="0" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.PastDueBalance}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="6" Grid.Row="1"  VerticalAlignment="Center"  Text="Credit Hold:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="1" Grid.Column="7" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.CreditHold}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                    <TextBlock Grid.Column="8" Grid.Row="0"  VerticalAlignment="Center"  Text="AR Balance:" Margin="2,2,2,2" FontSize="13"/>
                                                    <TextBox Grid.Row="0" Grid.Column="9" IsEnabled="{Binding Path=SecurityContext.IsVisible}" Text="{Binding Path=CRD.ARBalance}"  Margin="2,2,2,2" FontSize="12"/>
 
                                                <HyperlinkButton Foreground="#FF87AAD0" Grid.Column="8" Grid.Row="1" Command="{Binding SelectCreditStatusCommand, Mode=TwoWay, UpdateSourceTrigger=Default}"  VerticalAlignment="Center"  Content="Credit Status:" Margin="2,2,2,2" FontSize="13"/>
                                                    <sdk:AutoCompleteBox IsEnabled="{Binding Path=SecurityContext.IsCreditStatusVisible}" IsTextCompletionEnabled="True" FontSize="13" Margin="2,2,2,2" Grid.Column="9" Grid.Row="1" ValueMemberPath="cstatus" ItemsSource="{Binding CreditStatuses}"  Text="{Binding Path=CRD.CreditStatus, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                                                        <sdk:AutoCompleteBox.ItemTemplate>
                                                            <DataTemplate>
                                                                <StackPanel Orientation="Horizontal">
                                                                    <Image Source="/App.CreditReview;;component/Images/CreditCard16.png" />
                                                                    <TextBlock Text="{Binding cstatus}" Margin="5,5,5,5"/>
                                                                    <TextBlock Text="{Binding DESCRIPTION}" Margin="5,5,5,5" Width="180"/>
                                                                </StackPanel>
                                                            </DataTemplate>
                                                        </sdk:AutoCompleteBox.ItemTemplate>
                                                    </sdk:AutoCompleteBox>
                                                </Grid>
                                                <ig:XamGrid Grid.Row="1" ItemsSource="{Binding Path=CRD.ProductCategory}" AutoGenerateColumns="True">                                                   
                                                    <ig:XamGrid.FilteringSettings>
                                                        <ig:FilteringSettings AllowFiltering="FilterMenu"/>
                                                    </ig:XamGrid.FilteringSettings>
                                                    <ig:XamGrid.GroupBySettings>
                                                        <ig:GroupBySettings AllowGroupByArea="Top" />
                                                    </ig:XamGrid.GroupBySettings>
                                                    <ig:XamGrid.SummaryRowSettings>
                                                        <ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryScope="ChildBand" />
                                                    </ig:XamGrid.SummaryRowSettings>
                                                </ig:XamGrid>
                                            </Grid>
                                        </ig:ContentPane>
                                        <ig:ContentPane Header="Open Orders" AllowClose="False">
                                            <Grid>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition />
                                                </Grid.RowDefinitions>
                                                <ig:XamGrid Grid.Row="0" ItemsSource="{Binding CRD.OpenOrder}" AutoGenerateColumns="True">
                                                    <ig:XamGrid.FilteringSettings>
                                                        <ig:FilteringSettings AllowFiltering="FilterMenu"/>
                                                    </ig:XamGrid.FilteringSettings>
                                                    <ig:XamGrid.SummaryRowSettings>
                                                        <ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryScope="ChildBand" />
                                                    </ig:XamGrid.SummaryRowSettings>
                                                    <ig:XamGrid.GroupBySettings>
                                                        <ig:GroupBySettings AllowGroupByArea="Top" />
                                                    </ig:XamGrid.GroupBySettings>
                                                </ig:XamGrid>
                                            </Grid>
                                        </ig:ContentPane>
                                        <ig:ContentPane Header="Customer Credit Review" AllowClose="False">
                                            <Grid>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto"/>
                                                    <RowDefinition Height="Auto"/>
                                                </Grid.RowDefinitions>
                                                <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Left" Margin="2,2,2,2">
                                                    <TextBlock Text="Attention:"  FontSize="13"/>
                                                    <TextBlock Text="{Binding Path=CRD.Attention}" FontSize="13"/>
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Center" Margin="2,2,2,2">
                                                    <TextBlock Text="Telephone:"  FontSize="13"/>
                                                    <TextBlock Text="{Binding Path=CRD.Telephone}" FontSize="13"/>
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Right" Margin="2,2,2,2">
                                                    <TextBlock Text="Ext:"  FontSize="13"/>
                                                    <TextBlock Text="{Binding Path=CRD.EXT}"  FontSize="13"/>
                                                </StackPanel>
                                                <Grid Grid.Row="1">
                                                    <Grid.RowDefinitions>
                                                        <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"/>
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0" Text="Credit Review:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="0" Text="{Binding Path=CRD.CreditReviewDate}" Grid.Column="1"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Last Payment:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="0" Grid.Column="3" Text="{Binding Path=CRD.LastPaymentDate}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="4" Text="Current"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="0" Grid.Column="5" Text="{Binding Path=CRD.ToCURRENT}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0" Text="Terms:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="1" Grid.Column="1" Text="{Binding Path=CRD.CreditTerm}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="2" Text="Last Sale:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="1" Grid.Column="3" Text="{Binding Path=CRD.LastSaleDate}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="4" Text="To 30"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="1" Grid.Column="5" Text="{Binding Path=CRD.To30}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0" Text="Credit Limit:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="2" Grid.Column="1" Text="{Binding Path=CRD.CreditLimit}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="2" Grid.Column="2" Text="Credit Rating:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="2" Grid.Column="3" Text="{Binding Path=CRD.CreditRating}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="4" Text="To 60"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="2" Grid.Column="5" Text="{Binding Path=CRD.To60}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="0" Text="High Credit:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="3" Grid.Column="1" Text="{Binding Path=CRD.HighCredit}" FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="3" Grid.Column="2" Text="Credit Hold:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="3" Grid.Column="3" Text="{Binding Path=CRD.CreditHold}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="4" Text="To 90"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="3" Grid.Column="5" Text="{Binding Path=CRD.To90}" FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="4" Grid.Column="0" Text="High Date:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="4" Grid.Column="1" Text="{Binding Path=CRD.DBNumber}" FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="4" Grid.Column="2" Text="DB Number:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="4" Grid.Column="3"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="4" Text="Over 90"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="4" Grid.Column="5" Text="{Binding Path=CRD.Over90}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="5" Grid.Column="0" Text="Added:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="5" Grid.Column="1" Text="{Binding Path=CRD.Added}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="5" Grid.Column="2" Text="ADPL:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="5" Grid.Column="3" Text="{Binding Path=CRD.ADPL}" FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="4" Text="AR Balance"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Right" Width="150" Grid.Row="5" Grid.Column="5" Text="{Binding Path=CRD.ARBalance}"  FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Grid.Row="6" Grid.Column="0" Text="Confirm Date:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Left" Width="150" Grid.Row="6" Grid.Column="1" Text="{Binding Path=CRD.ConfirmDate}" FontSize="13"/>
 
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Grid.Row="6" Grid.Column="2" Text="Confirm Time:"  FontSize="13"/>
                                                    <TextBlock Margin="2,2,2,2" HorizontalAlignment="Center" Width="150" Grid.Row="6" Text="{Binding Path=CRD.ConfirmTime}" Grid.Column="3"  FontSize="13"/>
 
                                                </Grid>
                                            </Grid>
                                        </ig:ContentPane>
                                        <ig:ContentPane Header="AR Open Details" AllowClose="False">
                                            <Grid>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition />
                                                    <RowDefinition Height="Auto"/>
                                                </Grid.RowDefinitions>
                                                <ig:XamGrid x:Name="grdARDetails" Grid.Row="0" ItemsSource="{Binding Path=CRD.AROpenDetail}" AutoGenerateColumns="True">
                                                    <ig:XamGrid.GroupBySettings>
                                                        <ig:GroupBySettings AllowGroupByArea="Top" />
                                                    </ig:XamGrid.GroupBySettings>
                                                    <ig:XamGrid.FilteringSettings>
                                                        <ig:FilteringSettings AllowFiltering="FilterMenu"/>
                                                    </ig:XamGrid.FilteringSettings>
                                                    <ig:XamGrid.SummaryRowSettings>
                                                        <ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryScope="ChildBand" />
                                                    </ig:XamGrid.SummaryRowSettings>
                                                </ig:XamGrid>
                                                <Button Command="{Binding PrintARDetailsCommand}" CommandParameter="{Binding ElementName=grdARDetails}" Style="{StaticResource DefaultButtonStyle}" Grid.Row="1" Margin="2,2,2,2" HorizontalAlignment="Center">
                                                    <StackPanel Orientation="Horizontal" Margin="2,2,2,2">
                                                        <TextBlock Text="Printer Friendly Version"  />
                                                    </StackPanel>
                                                </Button>
                                            </Grid>
                                        </ig:ContentPane>
                                        <ig:ContentPane Header="Comments" AllowClose="False">
                                            <Grid>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                </Grid.RowDefinitions>
                                                <TextBlock Text="Comments:"  FontSize="13" HorizontalAlignment="Center" />
                                                <TextBox TextWrapping="Wrap" Text="{Binding Path=CRD.Comments}"  Grid.Row="1" Width="500" Height="300" VerticalScrollBarVisibility="Visible" />
                                            </Grid>
                                        </ig:ContentPane>
                                    </ig:TabGroupPane>
                                </ig:DocumentContentHost.Panes>
                            </ig:DocumentContentHost>
                        </ig:XamDockManager>
                    </Grid>
                </Grid>
            </toolkit:BusyIndicator>            
    </Grid>
Parents
No Data
Reply
  • 138253
    Offline posted

    Hello again,

     

    After some research our developers said that this behavior is expected, because the SL xamDockManager was designed such that it needs to know the available size in order to size the panes. When the control is in a scrollviewer (where the scrollbars are visible or auto) the XDM is measured with infinity which it treats as 0. Putting an XDM into a scrollviewer doesn't really make a lot of sense since the control will be arranged based on whatever its DesiredSize is so even if it considered the desired size of the panes to try and calculate its DesiredSize you would get some seeming strange behavior. For example, the control would only be as big as the panes - it wouldn't be as wide as the scrollviewer. If the panes were really wide you might not be able to dock to the sides without first scrolling the outer scrollviewer. Also as you dragged panes into and out of the XDM it would get bigger and smaller respectively. Also, if there were no panes (or if they were all floating) there would be no desired size so the control would be too small. In any case, the XDM doesn't support being hosted in an infinite width/height container so you need to provide some extent. If the customer wants scrollbars within the center content then they can put the scrollviewer as the content.

Children
No Data