RadCommandBarGrip
Provides the draggable handle used to reposition a CommandBarStripElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class RadCommandBarGrip : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCommandBarVisualElementRadCommandBarGrip...
Implements:
Inherited Members
Constructors
Creates a grip associated with the specified strip.
public RadCommandBarGrip(CommandBarStripElement owner)
The strip moved by dragging this grip.
Fields
Identifies the cancellable bubbling event raised before a strip drag begins.
public static RoutedEvent BeginDraggingEvent
Identifies the bubbling event raised as the pointer moves during a strip drag.
public static RoutedEvent DraggingEvent
Identifies the bubbling event raised when a strip drag ends.
public static RoutedEvent EndDraggingEvent
Identifies the property that controls how many grip dots are painted.
public static RadProperty NumberOfDotsProperty
Properties
Gets or sets the space between dots.
public float DotSpacing { get; set; }
Gets or sets the number of dots.
public virtual int NumberOfDots { get; set; }
Gets or sets the orientation of the grip element.
public override Orientation Orientation { get; set; }
Overrides:
Gets the CommandBarStripElement moved by this grip.
[Browsable(false)]
public CommandBarStripElement Owner { get; }
Gets or sets the shadow offset of the dots.
public float ShadowOffset { get; set; }
Methods
Begins tracking a drag if the owner permits it and no bubbling begin-drag handler cancels the operation.
protected void BeginDrag(MouseEventArgs e)
The pointer position used to calculate the grip's offset within its owner.
Initializes the grip with a minimum size and no border, fill, or dots.
protected override void CreateChildElements()
Overrides:
Releases mouse capture, clears the dragging state, and raises the end-drag event.
protected void EndDrag()
Raises a bubble event to notify its parents about the beginning of a drag.
protected virtual bool OnBeginDragging(CancelEventArgs args)
A CancelEventArgs that contains the event data.
Returns:true if the drag should be canceled, false otherwise.
Raises a bubble event to notify its parents about the drag.
protected virtual void OnDragging(MouseEventArgs args)
A MouseEventArgs that contains the event data.
Records the pointer position used to detect the start of a drag.
protected override void OnMouseDown(MouseEventArgs e)
The pointer position and button state.
Overrides:
Sets the move cursor when the pointer enters the grip.
Cancels the highlight animations and repaints the item when the pointer leaves.
protected override void OnMouseLeave(EventArgs e)
The event arguments.
Overrides:
Attempts to begin a drag after the left-button pointer moves at least one pixel from the mouse-down position; while active, updates the strip's desired location.
protected override void OnMouseMove(MouseEventArgs e)
The pointer position and button state.
Overrides:
Ends the drag when the pointer is released while a drag is active.
protected override void OnMouseUp(MouseEventArgs e)
The pointer position and button state.
Overrides:
Paints the base element followed by its grip dots.