public void SetBackdrops() { var vm = ContentViewModel as BaseHomePageSectionViewModel; if (vm != null) { vm.SetBackdrops(); } else { _presentationManager.ClearBackdrops(); } }
/// <summary> /// Handles the Navigated event of the _nav control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="NavigationEventArgs"/> instance containing the event data.</param> void _nav_Navigated(object sender, NavigationEventArgs e) { var page = e.NewPage; if (!(page is ISupportsBackdrops)) { _presentationManager.ClearBackdrops(); return; } var itemBackdrops = page as ISupportsItemBackdrops; if (itemBackdrops != null) { _presentationManager.SetBackdrops(itemBackdrops.BackdropItem); } }