SizeGripElement
Composite element that hosts one or two SizeGripItem grips, allowing a hosting control to be resized vertically, horizontally-and-vertically together, or both, depending on SizingMode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SizeGripElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemSizeGripElement...
Implements:
Inherited Members
Constructors
public SizeGripElement()
Properties
Gets the grip item that resizes only vertically (north-south), positioned at the bottom-center of the element.
public SizeGripItem GripItemNS { get; }
Gets the corner grip item that resizes both dimensions simultaneously (north-south-east-west), positioned at the middle-right (or middle-left in right-to-left layouts) of the element.
public SizeGripItem GripItemNSEW { get; }
Gets or sets the layout direction and forwards it to the corner grip to update its resize-direction cue.
public override bool RightToLeft { get; set; }
Overrides:
Gets or sets whether both grips include the hosting control's minimum size and the grip size in minimum-size calculations.
[Browsable(false)]
public bool ShouldAspectMinSize { get; set; }
Gets or sets whether both grips calculate their minimum size from the root element's desired size.
[Browsable(false)]
public bool ShouldAspectRootElement { get; set; }
Gets or sets which grip(s) are visible and active: UpDown shows only the bottom-center vertical grip, RightBottom shows only the corner grip that resizes both dimensions, and UpDownAndRightBottom shows both. The whole element is collapsed when set to None.
public SizingMode SizingMode { get; set; }
Methods
Creates the vertical and corner grips, placing the vertical grip at bottom center and the corner grip at middle right.
protected override void CreateChildElements()
Overrides:
Returns the normal status-bar visual style used to paint the sizing grip.
Returns the normal status-bar visual style used to paint the sizing grip.
Starts with the grip container hidden and leaves mouse handling to its child grips.
protected override void InitializeFields()
Overrides:
Hides the fill and border primitives before system-skin painting begins.
protected override void InitializeSystemSkinPaint()
Overrides:
Skips the fill and border primitives during system-skin painting because the system skin draws those parts.
protected override bool ShouldPaintChild(RadElement element)
The child element being considered for painting.
Returns:false for the fill or border when system-skin painting is active; otherwise, the base result.
Overrides:
Restores the fill and border primitives after system-skin painting ends.
protected override void UnitializeSystemSkinPaint()
Overrides: