Example #1
0
        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");
        }