/// <summary> /// Initializes a new instance of the <see cref="MultimediaPage"/> class. /// </summary> public MultimediaPage() { InitializeComponent(); // Wait to create a wrapper for the MediaElement control // until after the control has been created in InitializeComponent var mediaElementWrapper = new MediaElementWrapper(PlaybackWindow); ViewModel = new MultimediaViewModel(mediaElementWrapper); DataContext = ViewModel; _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += navigationHelper_LoadState; _navigationHelper.SaveState += navigationHelper_SaveState; }
/// <summary> /// Initializes a new instance of the <see cref="FileMarkerViewModel"/> class. /// </summary> /// <param name="multimediaViewModel">The multimedia view model.</param> /// <param name="fileMarker">The file marker.</param> public FileMarkerViewModel(MultimediaViewModel multimediaViewModel, FileMarker fileMarker) { MultimediaViewModel = multimediaViewModel; FileMarker = fileMarker; }