Esempio n. 1
0
        protected override void OnNavigatedTo(NavigationEventArgs args)
        {
            Result = string.Empty;
            RecognizerView.StartRecognition("ru-RU", LanguageModel.General);

            base.OnNavigatedTo(args);
        }
Esempio n. 2
0
        protected override void OnNavigatedFrom(NavigationEventArgs args)
        {
            RecognizerView.CancelRecognition();

            var mainPage = (args.Content as MainPage);

            if (null != mainPage)
            {
                mainPage.RetrievedText = Result;
            }


            base.OnNavigatedFrom(args);
        }