SidPen
SidPen

Reputation: 180

Canvas.Left vs Canvas.Right

Upvotes: 2

Views: 2970

Answers (2)

dkozl
dkozl

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

nvoigt
nvoigt

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

Related Questions