<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTabControl Foreground="Black" TabOrientation="Horizontal" TabStripPlacement="Left" Grid.Row="0" Grid.Column="0">
<telerik:RadTabItem Header="Tab Item A" Visibility="Collapsed" />
<telerik:RadTabItem Header="Tab Item D" Visibility="Collapsed" />
</telerik:RadTabControl>
</Grid>
上面的代码抛出我的应用程序错误。问题是
<telerik:RadTabItem Header="Tab Item A" Visibility="Collapsed" />
<telerik:RadTabItem Header="Tab Item D" Visibility="Collapsed" />
如果我至少有一个可见的标签控件,我的应用程序加载罚款否则抛出异常并坠毁我的应用程序。
例外:
-
Microsoft JScript runtime error: 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)
不限:
跟踪 “未处理的异常System.InvalidOperationExdeption UIElement.Arrange(finalRect)不能与在finalRect无限或NaN值被称为”理念?我无法在我的应用程序之外重现此内容。
如果您提到异常,则抛出异常并崩溃,因此请添加消息和/或堆栈跟踪。 – Reniuz
我编辑了与例外的问题。尽管我打开了所有的例外,但我无法让它打破视觉工作室事件。 Internet Explorer崩溃,并提出了上述错误。 – ove
更新了stacktrace.Any的想法? – ove