Represents a control which overlays the RadLayoutControl when the last is put in customize mode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlDraggableOverlay : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlLayoutControlDraggableOverlay...
Implements:
Inherited Members
Constructors
Creates a customization overlay, its drag service, and its localized hide menu for the specified layout control.
public LayoutControlDraggableOverlay(RadLayoutControl owner)
The layout control whose items are displayed and edited.
Properties
The LayoutControlDragDropService responsible for the drag operations in the control.
public LayoutControlDragDropService DragDropService { get; }
Gets the main element of the control.
public DraggableLayoutControlOverlayElement OverlayElement { get; }
Gets the owning RadLayoutControl
public RadLayoutControl Owner { get; }
Gets a collection of the selected items.
public ReadOnlyCollection<DraggableLayoutControlItem> SelectedItems { get; }
Methods
Adds the visual container that hosts draggable layout items and receives mouse input.
protected override void CreateChildItems(RadElement parent)
The element that hosts the overlay's child elements.
Overrides:
Disposes the hide menu and detaches the localization-provider change handler.
protected override void Dispose(bool disposing)
Whether managed resources are being disposed.
Overrides:
Finds the associated DraggableLayoutControlItem of the specified LayoutControlItemBase.
public DraggableLayoutControlItem FindDraggableItem(LayoutControlItemBase item)
The specified item.
Returns:The associated draggable item.
Gets the items from all levels in the control.
public IEnumerable<DraggableLayoutControlItem> GetItems()
IEnumerable<DraggableLayoutControlItem>
An enumeration to the items.
Gets all items which are descendants of the specified parent element.
public IEnumerable<DraggableLayoutControlItem> GetItems(DraggableLayoutControlOverlayElement overlayElement)
The parent element.
Returns:IEnumerable<DraggableLayoutControlItem>
An enumeration to the items.
Starts resizing on a resize handle, or selects an item and records a drag origin; Control-click toggles item selection. Right-click updates the selection when no more than one item is currently selected.
protected override void OnMouseDown(MouseEventArgs e)
The mouse-button and pointer-position data.
Overrides:
Continues an active resize or starts a drag after the left-button pointer passes the system drag threshold. When dragging from the selected tab of a tabbed group, uses that group's child item as the drag source.
protected override void OnMouseMove(MouseEventArgs e)
The mouse-button and pointer-position data.
Overrides:
Ends an active resize and shows the hide menu after a right-button release when hidden items are allowed.
protected override void OnMouseUp(MouseEventArgs e)
The released mouse button and pointer position.
Overrides:
Paints the drag-preview rectangle using the fill and stroke colors configured on the layout container.
protected override void OnPaint(PaintEventArgs e)
The paint data for the overlay control.
Overrides:
Deletes selected items that allow deletion; other keys are handled by the base control. The Delete key is consumed even when no selected item can be deleted.
Selects the specified item.
public void SelectItem(DraggableLayoutControlItem item, bool extend)
The item to select.
extendboolIf [true], item will be added to the current selection, otherwise only the specified item will be selected
Selects the specified item.
public void SelectLayoutItem(LayoutControlItemBase item)
The item to select.
Sets the bounds of the drag preview rectangle.
Starts the LayoutControlDragDropService with the specified item as a drag context.
public void StartDrag(LayoutControlItemBase item)
The item to drag.
Updates the preview of the underlying items.
public void UpdatePreview()
Updates the preview of the underlying items.
public void UpdatePreview(bool refreshElements)
If [true], child elements will be reinitialized, if [false], only the snapshot of existing elements will be updated.