[UWP]导航到不同的页面,这与屏幕大小有关 [英] [UWP]Navigate to different pages, this related to screen size

查看:109
本文介绍了[UWP]导航到不同的页面,这与屏幕大小有关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在UWP应用程序中工作,我的屏幕尺寸有问题。


当我的屏幕尺寸时,我是否可以导航到第X页?当我的屏幕尺寸> 720时,720和页面Y?


或者当我在手机上时我可以导航到第X页,当我在桌面上时可以导航到Y页?

汉堡包中的ListboxItem。


页面X将是具有2个PivotItems的枢轴页面,页面YI将具有2个"PivotItems"。彼此相邻。



问候,

Wilco


解决方案


您可以检查设备系列或设备的宽度应用程序来做到这一点您还可以为特定设备系列添加XAML视图。你可以在这里找到更多的信息https://msdn.microsoft.com/en-us/windows/uwp/layout/layouts-with-xaml在Tailored Layouts下


I am working at an UWP app and I have an issue with my screen size.

Is it possible that I can navigate to page X when my screen size <720 and to page Y when my screen size is >720?
Or maybe that I can navigate to page X when I am on a mobile and to page Y when I am on a desktop?
This with a ListboxItem in a hamburgermenu.

Page X will be a pivot-page with 2 PivotItems and page Y I will have the 2 "PivotItems" next to each other.

Regards,
Wilco

解决方案

You can check the device family or the width of the app to do that. You can also add XAML views for specific device families. You can find more infos here https://msdn.microsoft.com/en-us/windows/uwp/layout/layouts-with-xaml under Tailored Layouts


这篇关于[UWP]导航到不同的页面,这与屏幕大小有关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆