canvas.GetTop(contentcontrol) ; it return NaN
how to rectify this
Thanks
MUTHUKUMAR
NaN value
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jan 21, 2013, 10:39 PM EST
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
}