ClassDraggableLayoutControlItem
Represents a draggable, selectable, and resize-able item which displays a snapshot of its associated LayoutControlItemBase. This item is used in LayoutControlDraggableOverlay when the RadLayoutControl is in customize mode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DraggableLayoutControlItem : LayoutControlItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLayoutControlItemBaseDraggableLayoutControlItem
Implements:
Inherited Members
Constructors
DraggableLayoutControlItem()
Declaration
public DraggableLayoutControlItem()
DraggableLayoutControlItem(LayoutControlItemBase)
Declaration
public DraggableLayoutControlItem(LayoutControlItemBase associatedItem)
Parameters
associatedItem
Properties
AssociatedItem
Gets the associated LayoutControlItemBase.
Declaration
public LayoutControlItemBase AssociatedItem { get; set; }
Property Value
ChildItem
Gets the inner item of the current item. Such will exist if this item represents a LayoutControlTabbedGroup.
Declaration
public DraggableLayoutControlItem ChildItem { get; }
Property Value
GroupContainer
Gets the inner container of the current item. Such will exist if this item represents a LayoutControlGroupItem
Declaration
public DraggableLayoutControlOverlayElement GroupContainer { get; }
Property Value
IsSelected
Gets or sets a value indicating whether the item is currently selected.
SelectionFillColor
Gets or sets the overlay color which is displayed when the item is selected.
SelectionStrokeColor
Gets or sets the border color which is displayed when the item is selected.
Methods
CanDragCore(Point)
Determines whether the element may be dragged.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
InvalidateSnapshot()
Invalidates the preview of the associated item.
Declaration
public void InvalidateSnapshot()
PaintElement(IGraphics, float, SizeF)
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for rendering.
angle
The rotation angle to apply during painting.
scale
The scaling factor to apply during painting.
Overrides
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
Parameters
mousePosition
The current mouse position.
dragObject
The object being dragged.
Returns
True if the element can accept the drop; otherwise, false.
Overrides