简体   繁体   中英

Change Rectangle Position Sketchflow Blend

I am using Sketchflow c# silverlight Expression Blend 4. I have a dragable control on a rectangle and I am trying to change the rectangle position in c# on mouse click. How can this be achieved? Thanks

If you want to be able to drag the rectangle around, make the parent of the control a canvas and then drag a MouseDragElementBehavior onto the control.

If you know what position you want it to move to and want it to work with just a click, you drag a ChangePropertyAction behavior onto it to set the margin property (or some other layout property).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM