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