gpt4 book ai didi

screen - 如何在 Windows Phone 7 系列上获取屏幕尺寸?

转载 作者:行者123 更新时间:2023-12-03 13:02:44 24 4
gpt4 key购买 nike

最佳答案

我用这个:

this.ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth;
this.ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight;

为应用程序换肤的多种方法。如果它用于 XAML,则可以绑定(bind)到 LayoutRoot 的属性。
Height="{Binding ElementName=LayoutRoot,Path=ActualHeight}"

关于screen - 如何在 Windows Phone 7 系列上获取屏幕尺寸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2596732/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com