예제 #1
0
 internal static void CloseExpandedEntry()
 {
     if (currentExpandedEntry != null)
     {
         VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true);
         currentExpandedEntry = null;
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
        private static void OnViewTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SongListItem songListItem = DebugHelper.CastAndAssert <SongListItem>(d);

            songListItem.UpdateView();
        }