コード例 #1
0
        private void ChangeGroupDescriptor(GroupDescriptorBase newDescriptor)
        {
            if (this.Model != null && this.groupDescriptorCache != null)
            {
                this.Model.GroupDescriptors.Remove(this.groupDescriptorCache);
            }

            this.groupDescriptorCache = newDescriptor;
        }
コード例 #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);
 }
コード例 #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)
 {
 }
コード例 #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);
 }