使内容适应 MAUI 设备屏幕尺寸的预期方式

huangapple go评论52阅读模式
英文:

Intended way of making content fit to screen size of device in MAUI

问题

In the MAUI framework, what is considered best practice/the intended way of making content fill the screen of the running device?

在MAUI框架中,如何使内容填充正在运行设备的屏幕被认为是最佳实践/预期的方法?

As for the content, let's assume it's a BoxView, for simplicity.

至于内容,让我们假设它是一个BoxView,以简化问题。

I've made a small example here. Disregard the space between the screen and the content:

我在这里制作了一个小示例。请忽略屏幕和内容之间的间隙:

使内容适应 MAUI 设备屏幕尺寸的预期方式

使内容适应 MAUI 设备屏幕尺寸的预期方式

Regardless of what device is running the app, what kind of layout is best? Grid, StackLayout, etc...

不管运行应用的设备是什么,哪种布局最佳?Grid、StackLayout等等...

英文:

In the MAUI framework, what is considered best practice/the intended way of making content fill the screen of the running device?

As for the content, let's assume it's a BoxView, for simplicity.

I've made a small example here. Disregard the space between the screen and the content:

使内容适应 MAUI 设备屏幕尺寸的预期方式

Regardless of what device is running the app, what kind of layout is best? Grid, StackLayout, etc...

答案1

得分: 2

Regardless of what device is running the app, what kind of layout is best? Grid, StackLayout, etc...

我认为这取决于具体情况。每种布局都有其独特的特点。有关更多详细信息,您可以参考官方文档:布局

英文:

> Regardless of what device is running the app, what kind of layout is best? Grid, StackLayout, etc...

I think it depends on the specific situation. Each layout has its own characteristics. For more details you can refer to the official doc: Layouts.

huangapple
  • 本文由 发表于 2023年4月13日 19:33:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004936.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定