{WP7/WP8·获取屏幕大小}

获取屏幕大小
this.ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth;
this.ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight;

这是动态绑定的方法

Height="{Binding ElementName=LayoutRoot,Path=ActualHeight}"
posted @ 2012-11-30 13:23  NSDefaultRunLoopMode  阅读(266)  评论(0编辑  收藏  举报