{WP7·获取屏幕大小}

来源:互联网 发布:zbwj后缀是什么软件 编辑:程序博客网 时间:2024/06/09 17:33
获取屏幕大小
this.ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth;this.ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight;

这是动态绑定的方法

Height="{Binding ElementName=LayoutRoot,Path=ActualHeight}"
原创粉丝点击