private void ChangeGroupDescriptor(GroupDescriptorBase newDescriptor) { if (this.Model != null && this.groupDescriptorCache != null) { this.Model.GroupDescriptors.Remove(this.groupDescriptorCache); } this.groupDescriptorCache = newDescriptor; }
/// <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); }
/// <summary> /// Called when DataGrid flyout items started reorder operation. /// </summary> /// <param name="groupDescriptorBase">The group descriptor base.</param> public virtual void OnReorderStarted(GroupDescriptorBase groupDescriptorBase) { }
/// <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); }