Friday, May 15, 2009

Silverlight How to Convert String to Thickness

Thickness res = new Thickness();
res = new Thickness(Convert.ToDouble(e.GetPosition(null).Y.ToString()));

By Default e.GetPosition(null).Y is Double datatype for example i convert that into string and again convert that to Double

Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.