private void ChangeGroupDescriptor(GroupDescriptorBase newDescriptor)
        {
            if (this.Model != null && this.groupDescriptorCache != null)
            {
                this.Model.GroupDescriptors.Remove(this.groupDescriptorCache);
            }

            this.groupDescriptorCache = newDescriptor;
        }
Esempio n. 2
0
 /// <summary>
 /// Determines whether the specified descriptors can be reordered through the DataGrid group flyout.
 /// </summary>
 /// <param name="sourceDescriptor">The source descriptor.</param>
 /// <param name="destinationDescriptor">The destination descriptor.</param>
 public virtual bool CanReorder(GroupDescriptorBase sourceDescriptor, GroupDescriptorBase destinationDescriptor)
 {
     return(true);
 }
Esempio n. 3
0
 /// <summary>
 /// Called when DataGrid flyout items started reorder operation.
 /// </summary>
 /// <param name="groupDescriptorBase">The group descriptor base.</param>
 public virtual void OnReorderStarted(GroupDescriptorBase groupDescriptorBase)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Determines whether this Grid can start reorder the specified descriptor.
 /// </summary>
 /// <param name="groupDescriptorBase">The specified descriptor.</param>
 /// <returns>Whether reorder operation can start.</returns>
 public virtual bool CanStartReorder(GroupDescriptorBase groupDescriptorBase)
 {
     return(true);
 }