Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 异常-元件的布局测量覆盖';System.Windows.Controls.Grid';不应将NaN值作为其所需大小返回_C#_Wpf_Layout_Uielement_Measure - Fatal编程技术网

C# 异常-元件的布局测量覆盖';System.Windows.Controls.Grid';不应将NaN值作为其所需大小返回

C# 异常-元件的布局测量覆盖';System.Windows.Controls.Grid';不应将NaN值作为其所需大小返回,c#,wpf,layout,uielement,measure,C#,Wpf,Layout,Uielement,Measure,我有个例外 元素“System.Windows.Controls.Grid”的布局测量覆盖 不应将NaN值作为其所需大小返回 堆栈跟踪: 在System.Windows.UIElement.Measure(可用大小大小)处 System.Windows.Controls.Canvas.MeasureOverride(大小约束)位于 System.Windows.FrameworkElement.MeasureCore(可用大小大小)位于 System.Windows.UIElement.Meas

我有个例外

元素“System.Windows.Controls.Grid”的布局测量覆盖 不应将NaN值作为其所需大小返回

堆栈跟踪:

在System.Windows.UIElement.Measure(可用大小大小)处 System.Windows.Controls.Canvas.MeasureOverride(大小约束)位于 System.Windows.FrameworkElement.MeasureCore(可用大小大小)位于 System.Windows.UIElement.Measure(可用大小大小)位于 系统。窗口。控件。控件。测量超出(大小限制)在 System.Windows.FrameworkElement.MeasureCore(可用大小大小)位于 System.Windows.UIElement.Measure(可用大小大小)位于 System.Windows.UIElement.Arrange(Rect finalRect)位于 System.Windows.Controls.Canvas.ArrangeOverride(大小arrangeSize)位于 System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)位于 System.Windows.UIElement.Arrange(Rect finalRect)位于 System.Windows.ContextLayoutManager.UpdateLayout()位于 System.Windows.ContextLayoutManager.UpdateLayoutCallback(对象参数)
在System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()上 位于System.Windows.Media.MediaContext.RenderMessageHandlerCore(对象 调整大小的组件目标)位于 System.Windows.Media.MediaContext.RenderMessageHandler(对象 调整大小的组件目标)位于 System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托 回调,对象args,Int32 numArgs)位于 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(对象源, 委托回调、对象参数、Int32 numArgs、委托catchHandler)


如何解决这个问题?请帮助我…

提供更多详细信息如何?请发布引发异常的代码。如果未定义数学运算或产生无法在浮点范围内表示的结果,例如平方根-1、除以0等,则会出现INF、IND和NAN值。。请参阅如何提供更多详细信息?请发布引发异常的代码。如果未定义数学运算或产生无法在浮点范围内表示的结果,例如平方根-1、除以0等,则会出现IND和NAN值。。看见