获取windows8的屏幕大小和改变事件

CoreWindow cw = CoreWindow.GetForCurrentThread();
_pagesize = new Size(cw.Bounds.Width, cw.Bounds.Height);
 cw.SizeChanged += cw_SizeChanged;

        async void cw_SizeChanged(CoreWindow sender, WindowSizeChangedEventArgs args)
        {

           //

        }

posted @ 2012-08-02 12:47  农村山沟沟出来的大学生  阅读(294)  评论(0编辑  收藏  举报