tags:

views:

440

answers:

3

Basically I'm trying to change the Canvas.Left property of an Ellipse Silverlight control in C#. Here is how I'm accessing the control:

Ellipse c1 = this.FindName("Circle1") as Ellipse;

How would I then set the Canvas.Left property?

Thanks,

Jeff

+3  A: 

The answer lies in Silverlights use of Dependancy Properties

c1.SetValue(Canvas.LeftProperty, value);

JSmyth
A: 

something like this...

double left=50;
c1.SetValue(Canvas.LeftProperty, left);
Bill Reiss
A: 

Another way Canvas.SetLeft(c1,value)

Tanmoy