Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Canvas.Top for UserControl

I'm creating simple circle control (with center and radius properties) based on ellipse.

Code for using my control is simple (control is in Canvas):

<my:Circle Canvas.Left="1300" Canvas.Top="1243" CenterX="800" CenterY="800" Radius="100" />

I've created 3 DP's: CenterX, CenterY and Radius.

How can I change Canvas.Top and Canvas.Bottom from callbacks?

like image 277
xZ6a33YaYEfmv Avatar asked Jan 01 '12 23:01

xZ6a33YaYEfmv


1 Answers

Call Canvas.SetLeft(someControl, someDouble).

like image 176
SLaks Avatar answered Sep 21 '22 10:09

SLaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!