예제 #1
0
        private void RaiseDimensionsChangedEvent()
        {
            if (DimensionsChanged == null)
            {
                return;
            }
            DimensionsChangedEventArgs args = new DimensionsChangedEventArgs()
            {
                zone    = GetCurrentZone(),
                oldZone = _oldZone
            };

            DimensionsChanged(this, args);
        }
예제 #2
0
 private void AppSystem_DimensionsChanged(object sender, DimensionsChangedEventArgs e)
 {
     _viewModel.WindowHeight = e.Dimensions.Height;
     _viewModel.WindowWidth  = e.Dimensions.Width;
 }