예제 #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;
        }
예제 #2
0
 public SettingsPartViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         // designtime
     }
     else
     {
         _settings = SettingsService.Instance;
     }
 }
예제 #3
0
 static SettingsService()
 {
     // implement singleton pattern
     Instance = Instance ?? new SettingsService();
 }
예제 #4
0
		public Shell(INavigationService navigationService) : this()
		{
			SetNavigationService(navigationService);
			settings = SettingsService.Instance;
		}
예제 #5
0
 static SettingsService()
 {
     // implement singleton pattern
     Instance = Instance ?? new SettingsService();
 }