예제 #1
0
 public MainPage()
 {
     this.InitializeComponent();
     this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;
     RecognizerViewModel      = new RecognizerSpeechViewModel(dispatcher);
     HaveTempFile();
     page     = (MainPage)this.mainPage;
     MainView = new MainViewModel();
 }
예제 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     recognizerSpeechViewModel = e.Parameter as RecognizerSpeechViewModel;
     this.RecentView           = new RecentFilesViewModel(recognizerSpeechViewModel);
 }
예제 #3
0
 public MainViewModel()
 {
     RecognizerViewModel = new RecognizerSpeechViewModel(dispatcher);
 }
예제 #4
0
 public RecentFilesViewModel(RecognizerSpeechViewModel recognizerSpeechViewModel)
 {
     recognizerSpeechView = recognizerSpeechViewModel;
     PopulateRecentFiles();
 }