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

            this.groupDescriptorCache = newDescriptor;
        }
Ejemplo 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);
 }
Ejemplo 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)
 {
 }
Ejemplo 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);
 }