Exemple #1
0
 private void coverFlow_SelectedItemChanged(CoverFlowUWP.CoverFlowEventArgs e) {
     ((MainPageViewModel)this.DataContext).SelectedScreenshotVM = (ScreenshotViewModel)e.Item;
 }
Exemple #2
0
 // 1/13/2016 I tried doing Interactivity Event Binding but got this error:
 // Cannot add instance of type Microsoft.Xaml.Interactions.Core.EventTriggerBehavior to a collection of type Microsoft.Xaml.Interactivity.BehaviorCollection.
 // Not sure what the problem is. CoverFlow inherits from ItemsControl same as ListView which works with Interactivity Event Binding.
 private void PlanetCoverFlow_SelectedItemChanged(CoverFlowUWP.CoverFlowEventArgs e) {
     ((MvvmPageViewModel)this.DataContext).SelectedPlanetVM = (PlanetViewModel)e.Item;
 }