Exemple #1
0
        public App()
        {
            InitializeComponent();

            Sample.Services.SettingsServices.SettingsService _settings = Sample.Services.SettingsServices.SettingsService.Instance;
            RequestedTheme                      = _settings.AppTheme;
            Settings.SplashFactory              = (e) => new Views.Splash(e);
            Settings.CacheMaxDuration           = _settings.CacheMaxDuration;
            Settings.ShowShellBackButton        = _settings.UseShellBackButton;
            Settings.AutoExtendExecutionSession = false;
        }
 public SettingsPartViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         // designtime
     }
     else
     {
         _settings = SettingsService.Instance;
     }
 }
 static SettingsService()
 {
     // implement singleton pattern
     Instance = Instance ?? new SettingsService();
 }
Exemple #4
0
		public Shell(INavigationService navigationService) : this()
		{
			SetNavigationService(navigationService);
			settings = SettingsService.Instance;
		}
Exemple #5
0
 static SettingsService()
 {
     // implement singleton pattern
     Instance = Instance ?? new SettingsService();
 }