开发者

Change origin of UserControl placed in a Canvas

开发者 https://www.devze.com 2023-03-22 14:00 出处:网络
I have a UserControl that I\'m positioning on a Canvas control using Canvas.Left() and Canvas.Top(). By default the origin of the UserControl is top left (0,0). How can I move the o开发者_StackOverflo

I have a UserControl that I'm positioning on a Canvas control using Canvas.Left() and Canvas.Top(). By default the origin of the UserControl is top left (0,0). How can I move the o开发者_StackOverflow中文版rigin of the UserControl to be bottom left?


For that you can use the Bottom attached property, instead of the Top. You can still use the Left property, like you are.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号