canvas.GetTop(contentcontrol) ; it return NaN
how to rectify this
Thanks
MUTHUKUMAR
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Jan 22, 2013, 3:39 AM
What you can do is if a specific control value is Nan, you can set some default value, like the below one.
if (double.IsNaN(canvas.GetTop(contentcontrol))
{
//do something
}