I am new to Silverlight and I just wanted to ask why my ActualHeight was set to NaN? It has a width and height of 500, but when compiled, it gives an error that says that ActualHeight is equal to NaN. Is there some other way to do this? Any help would be appreciated. Thanks.

有帮助吗?

解决方案

NaN stands for "Not a Number".

1).When you have set the width of the object explicitly ActualWidth and RenderSize.Width will be set to 0.0. 2). When you have set the width of the object to Auto Width will be set to NaN.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top