摘要:
获取屏幕大小this.ScreenWidth = System.Windows.Application.Current.Host.Content.ActualWidth;this.ScreenHeight = System.Windows.Application.Current.Host.Content.ActualHeight;这是动态绑定的方法Height="{Binding ElementName=LayoutRoot,Path=ActualHeight}" 阅读全文