private void RaiseDimensionsChangedEvent() { if (DimensionsChanged == null) { return; } DimensionsChangedEventArgs args = new DimensionsChangedEventArgs() { zone = GetCurrentZone(), oldZone = _oldZone }; DimensionsChanged(this, args); }
private void AppSystem_DimensionsChanged(object sender, DimensionsChangedEventArgs e) { _viewModel.WindowHeight = e.Dimensions.Height; _viewModel.WindowWidth = e.Dimensions.Width; }