I did not knew that this simple thing would be slightly complicated. I have a Canvas in which I am trying to add Ellipse dynamically. Here is the code:
<
Try to convert integer type to Double type using "CDbl" function
Try this:
ellipse.SetValue(Canvas.LeftProperty,Cdbl(100));