private void OnScreenShotChanged(BitmapSource newValue) { if (newValue.IsNotNull()) { this.Width = newValue.Width; this.Height = newValue.Height; } }