Inheritance: GalaSoft.MvvmLight.Messaging.MessageBase
		private void OnSettingsChanged(SettingsChangedMessage message)
		{
			if (_settingsService.LeftHandedMode != _leftHandedMode)
				LeftHandedMode = _settingsService.LeftHandedMode;
		}
Esempio n. 2
0
 private async void OnSettingsChanged(SettingsChangedMessage message)
 {
     RaisePropertyChanged("ShowAds");
 }
		private void OnSettingsChanged(SettingsChangedMessage message)
		{
			_orientationLocked = _settingsService.OrientationLock;
			var _orientation = StringToOrientation(_settingsService.Orientation);

			if (_orientationLocked)
			{
				switch (_orientation)
				{
					case PageOrientation.Landscape:
					case PageOrientation.LandscapeLeft:
					case PageOrientation.LandscapeRight:
						SupportedOrientation = SupportedPageOrientation.Landscape;
						SystemTrayVisible = false;
						break;
					case PageOrientation.None:
					case PageOrientation.Portrait:
					case PageOrientation.PortraitDown:
					case PageOrientation.PortraitUp:
					default:
						SupportedOrientation = SupportedPageOrientation.Portrait;
						break;
				}
				RaisePropertyChanged("Orientation");
			}
			else
			{
				SupportedOrientation = SupportedPageOrientation.PortraitOrLandscape;
			}
		}
Esempio n. 4
0
		private async void OnSettingsChanged(SettingsChangedMessage message)
		{
			if (!message.InitialLoad)
				await _baconProvider.GetService<ISettingsService>().Persist();
		}