Пример #1
0
 void Current_SizeChanged(object sender, WindowSizeChangedEventArgs e)
 {
     ViewPortResolution = new Dimensions((int)e.Size.Width, (int)e.Size.Height);
 }
 private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     ViewPortResolution = new Dimensions((int)e.NewSize.Width, (int)e.NewSize.Height);
 }