Align items in a stack panel?

前端 未结 9 1221
我寻月下人不归
我寻月下人不归 2020-12-04 10:23

I was wondering if I can have 2 controls in a horizontal-oriented StackPanel so that the right item should be docked to the right side of the StackPanel.

I tried the

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 11:17

    for windows 10 use relativePanel instead of stack panel, and use

    relativepanel.alignrightwithpanel="true"

    for the contained elements.

提交回复
热议问题