none
Windows 基于缩放比例自动缩放应用,自动缩放能否被接管? RRS feed

  • 问题

  • 我通过flipview做了多个可翻转的页面,我想保证这些页面在不同分辨率下都保持相同的排版,使用比例关系布局发现想修改控件位置时在flipview中的控件必须全部加在完毕才能通过遍历查找然后修改控件位置。我想在程序尚未加载多个翻转页面前根据CoreWindow::GetForCurrentThread()->Bounds.Height/Width和DisplayProperties::ResolutionScale属性来修改flipview中的控件又不知道从哪下手。

    各位给点建议呗,不管哪种方法只为最终实现最初目的。

    2014年6月24日 2:59

答案

  • Hi,

    您可以通过Grid布局来调整不同分辨率下的排版,具体就是在定义Grid的Row和Column时,尽量使用比例关系布局,不要固定宽度和高度。

    另外让布局适应不同的分辨率的话,可以看看这篇文章,里面提供了多种方法以及不同情况下的解决方案:

    http://msdn.microsoft.com/zh-cn/library/windows/apps/hh465349.aspx

    祝您好运!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2014年6月25日 5:39
    版主

全部回复

  • Hi,

    您可以通过Grid布局来调整不同分辨率下的排版,具体就是在定义Grid的Row和Column时,尽量使用比例关系布局,不要固定宽度和高度。

    另外让布局适应不同的分辨率的话,可以看看这篇文章,里面提供了多种方法以及不同情况下的解决方案:

    http://msdn.microsoft.com/zh-cn/library/windows/apps/hh465349.aspx

    祝您好运!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2014年6月25日 5:39
    版主
  • 好的,谢谢!
    2014年6月25日 7:19