Resizing UWP Window on User Drag

时间:2017-04-06 17:18:35

标签: user-interface resize uwp window

I am trying to change the size of the UI Elements within a UWP Window on the change of the size of the window itself, such as clicking the edge of the window and dragging right. However, on increase of size, there seems to be Bounds set on the creation of the Window for the maximum size of the content, is there anyway to bypass this Bounds?

1 个答案:

答案 0 :(得分:0)

尝试将UI元素的Horizo​​ntalAlignment和/或VerticalAlignment设置为" Stretch"。或者,如果您也想缩放它,您可以将整个事物放在ViewBox中。实现你想要的东西确实有很多选择。