windows phone

//屏幕宽度
            //double Screen_Width = System.Windows.Application.Current.Host.Content.ActualWidth;
            //double a =  System.Windows.Application.Current.RootVisual.RenderSize.Width;
            var we = new System.Windows.Media.Imaging.WriteableBitmap(app, new ScaleTransform { ScaleX = 1, ScaleY = 1 });
            var Screen_Height = we.PixelHeight;
            var Screen_Width = we.PixelWidth;
            Debug.WriteLine(Screen_Height + "==========abc=============" + Screen_Width);

猜你喜欢

转载自zcxwh353631531.iteye.com/blog/2087620