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(); }
public Shell(INavigationService navigationService) : this() { SetNavigationService(navigationService); settings = SettingsService.Instance; }