Reputation: 180
Canvas.Right
and Canvas.Left
similarly Canvas.Top
and Canvas.Bottom
Canvas.Right
and when i try to align in the Design mode it adds the Canvas.Left
, how to prevent auto adding Canvas.Left
property to a control while aligning it, as I already defined the Canvas.Right
to it why it doesn't update the same property. Its really irritating when we want to do animation on controls, it reverses the direction of animationUpvotes: 2
Views: 2970
Reputation: 33364
Canvas.Left
is the distance between left side of control and left side of Canvas
and Canvas.Right
is the distance of the right side from the right and analogically it's the same with Canvas.Top
and Canvas.Bottom
. You can read about it in Canvas
attached properties. The designer is not particularly intelligent or helpful in this case. The only way is to do it manually in XAML
Upvotes: 3
Reputation: 77304
The answer to this is don't use the visual drag&drop designer. It will do it's best but it cannot read your mind. If you know what you want, you are faster doing XAML directly, than visually designing it and then manually doing XAML optimization anyway.
Upvotes: 4