Пример #1
0
 internal static void CloseExpandedEntry()
 {
     if (currentExpandedEntry != null)
     {
         VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true);
         currentExpandedEntry = null;
     }
 }
 internal static void CloseExpandedEntry()
 {
     if (currentExpandedEntry != null)
     {
         VisualStateManager.GoToState(currentExpandedEntry, "ExpandedStateClosed", true);
         currentExpandedEntry = null;
     }
 }
        private void HandleHeaderTapped(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;
            }
        }
Пример #4
0
        private void HandleHeaderTapped(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;
            }
        }