internal static void CloseExpandedEntry() { if (currentExpandedEntry != null) { VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true); currentExpandedEntry = null; } }
private void HandleStackPanelTapped(object sender, TappedRoutedEventArgs e) { if (ParentList != null && ParentList.ReorderMode == ListViewReorderMode.Enabled) { return; } if (currentExpandedEntry != this) { if (currentExpandedEntry != null) { VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true); } currentExpandedEntry = this; VisualStateManager.GoToState(this, "ExpandedStateOpen", true); } else { VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true); currentExpandedEntry = null; } }
private static void OnViewTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SongListItem songListItem = DebugHelper.CastAndAssert <SongListItem>(d); songListItem.UpdateView(); }