RelativePanel控件:
用法 | 描述 |
---|---|
RelativePanel.Above |
设置当前element为目标element的上方 |
RelativePanel.AlignBottomWith |
设置当前element与目标element底部对齐 |
RelativePanel.AlignBottomWithPanel |
设置当前element与RelativePanel底部对齐 |
RelativePanel.AlignHorizontalCenterWith |
设置当前element与目标element水平中心对齐 |
RelativePanel.AlignHorizontalCenterWithPanel |
设置当前element与RelativePanel水平中心对齐 |
RelativePanel.AlignLeftWith |
设置当前element与目标element左边框对齐 |
RelativePanel.AlignLeftWithPanel |
设置当前element与RelativePanel左边框对齐 |
RelativePanel.AlignRightWith |
设置当前element与目标element右边框对齐 |
RelativePanel.AlignRightWithPanel |
设置当前element与RelativePanel右边框对齐 |
RelativePanel.AlignTopWith |
设置当前element与目标element顶部对齐 |
RelativePanel.AlignTopWithPanel |
设置当前element与RelativePanel顶部对齐 |
RelativePanel.AlignVerticalCenterWith |
设置当前element与目标element垂直中心对齐 |
RelativePanel.AlignVerticalCenterWithPanel |
设置当前element与RelativePanel垂直中心对齐 |
RelativePanel.Below |
设置当前element为目标element的下方 |
RelativePanel.LeftOf |
设置当前element为目标element的左边 |
RelativePanel.RightOf |
设置当前element为目标element的右边 |
自适应触发器:
<VisualStateManager.VisualStateGroups> <VisualStateGroup> <VisualState> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="600" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="button1.Width" Value="500" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups>