public async override Task OnInitializeAsync(IActivatedEventArgs args) { await base.OnInitializeAsync(args); // set theme colors var BLUE_THEME = Color.FromArgb(255, 0, 34, 119); ColorPropertiesDark = new AppColorProperties(BLUE_THEME, Colors.White, Colors.Black, null, null, Colors.White, BLUE_THEME); ColorPropertiesLight = new AppColorProperties(Colors.Red, Colors.Black, Colors.White, null, null, Colors.Black, null); _speechService = Injector.Get <ISpeechService>(); _speechService.InstallCommandSets("/Assets/Speech/AdventureWorksCommands.xml"); }
public async override Task OnInitializeAsync(IActivatedEventArgs args) { await base.OnInitializeAsync(args); // create localizer here, because the Core Windows has to be initialized first Localizer = new Localizer(); // setup theme colors (mainly for title bar) ColorPropertiesDark = new AppColorProperties(AppConstants.COLOR_ACCENT, Colors.White, Colors.Black, Colors.White, Color.FromArgb(255, 31, 31, 31), null, null); ColorPropertiesLight = new AppColorProperties(AppConstants.COLOR_ACCENT, Colors.Black, Colors.White, Colors.Black, Color.FromArgb(255, 230, 230, 230), null, null); #if DEBUG await LicenseService.RefeshSimulator(); #endif }