There is not much to the application I'm creating. Basically a RadDocking control in a user control what is being consumed into the content of a tab control. I get the following error, any ideas?
Webpage error details
Message: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.InvalidOperationException: UIElement.Arrange(finalRect) cannot be called with Infinite or NaN values in finalRect.
at System.Windows.UIElement.Arrange(Rect finalRect)
at Telerik.Windows.Controls.Primitives.TabStripPanel.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
If I remove the docking stuff and replace it with a label, all is fine. here is the definition of my user control:
<UserControl x:Class="CODYRecords.Views.MainNamesControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:VIEWS="clr-namespace:CODYRecords.Views"
xmlns:uc="clr-namespace:CODYRecords.Names"
mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:CODY.ObjectModel;assembly=CODY.ObjectModel" Loaded="UserControl_Loaded" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" d:DesignHeight="372" d:DesignWidth="845">
<UserControl.DataContext>
<VIEWS:NamesViewModel />
</UserControl.DataContext>
<Grid x:Name="LayoutRoot" Background="White" UseLayoutRounding="False" Height="371.964" Width="844.968">
<telerik:RadDocking HorizontalAlignment="Stretch" Name="radDocking1" VerticalAlignment="Stretch" HasDocumentHost="true">
<telerik:RadSplitContainer InitialPosition="DockedRight" Height="Auto" Name="rsplRight" >
<telerik:RadPaneGroup TabStripPlacement="Right" Name="rpgRight">
<telerik:RadPane Header="Image" Name="rpnRight" Visibility="Collapsed"></telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer InitialPosition="DockedTop" Height="Auto">
<telerik:RadPaneGroup SelectedIndex="-1" TabStripPlacement="Bottom" Align="Left" Height="Auto" VerticalAlignment="Top" Width="Auto">
<telerik:RadPane Header="Selected Name" Name="SelectedName" >
<!-- <uc:ucNameData Height="469.953"></uc:ucNameData> -->
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer InitialPosition="DockedBottom" Width="Auto" Height="Auto" MinHeight="0" MinWidth="0">
<telerik:RadPaneGroup SelectedIndex="0" TabStripPlacement="Top" TabOrientation="Horizontal" Height="Auto">
<telerik:RadPane Header="Full list" />
<telerik:RadPane Header="Itentifiers" />
<telerik:RadPane Header="Incidents" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
</UserControl>
Webpage error details
Message: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.InvalidOperationException: UIElement.Arrange(finalRect) cannot be called with Infinite or NaN values in finalRect.
at System.Windows.UIElement.Arrange(Rect finalRect)
at Telerik.Windows.Controls.Primitives.TabStripPanel.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
If I remove the docking stuff and replace it with a label, all is fine. here is the definition of my user control:
<UserControl x:Class="CODYRecords.Views.MainNamesControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:VIEWS="clr-namespace:CODYRecords.Views"
xmlns:uc="clr-namespace:CODYRecords.Names"
mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:CODY.ObjectModel;assembly=CODY.ObjectModel" Loaded="UserControl_Loaded" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" d:DesignHeight="372" d:DesignWidth="845">
<UserControl.DataContext>
<VIEWS:NamesViewModel />
</UserControl.DataContext>
<Grid x:Name="LayoutRoot" Background="White" UseLayoutRounding="False" Height="371.964" Width="844.968">
<telerik:RadDocking HorizontalAlignment="Stretch" Name="radDocking1" VerticalAlignment="Stretch" HasDocumentHost="true">
<telerik:RadSplitContainer InitialPosition="DockedRight" Height="Auto" Name="rsplRight" >
<telerik:RadPaneGroup TabStripPlacement="Right" Name="rpgRight">
<telerik:RadPane Header="Image" Name="rpnRight" Visibility="Collapsed"></telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer InitialPosition="DockedTop" Height="Auto">
<telerik:RadPaneGroup SelectedIndex="-1" TabStripPlacement="Bottom" Align="Left" Height="Auto" VerticalAlignment="Top" Width="Auto">
<telerik:RadPane Header="Selected Name" Name="SelectedName" >
<!-- <uc:ucNameData Height="469.953"></uc:ucNameData> -->
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer InitialPosition="DockedBottom" Width="Auto" Height="Auto" MinHeight="0" MinWidth="0">
<telerik:RadPaneGroup SelectedIndex="0" TabStripPlacement="Top" TabOrientation="Horizontal" Height="Auto">
<telerik:RadPane Header="Full list" />
<telerik:RadPane Header="Itentifiers" />
<telerik:RadPane Header="Incidents" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
</UserControl>