Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlItem : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTabbedFormControlItem...
Implements:
Inherited Members
Constructors
public RadTabbedFormControlItem()
Fields
public static RadProperty FillPaddingProperty
public static RadProperty IsSelectedProperty
Properties
public StackLayoutPanel ButtonsStack { get; }
public LightVisualButtonElement CloseButton { get; }
Gets or sets the padding that defines the offset of element's fill. This does not affect element's layout logic such as size and location but has only appearance impact.
public Padding FillPadding { get; set; }
Determines whether the item is currently selected (associated with the SelectedTab of the owning RadTabbedFormControl).
[Browsable(false)]
public bool IsSelected { get; set; }
public RadTabbedFormControlElement Owner { get; }
public LightVisualButtonElement PinButton { get; }
Gets the RadTabbedFormControlTab instance associated with this item.
[Browsable(false)]
public RadTabbedFormControlTab Tab { get; }
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
protected virtual LightVisualButtonElement CreateCloseButtonElement()
protected virtual LightVisualButtonElement CreatePinButtonElement()
public virtual void Detach()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
protected virtual RectangleF ModifyBorderAndFillPaintRect(RectangleF preferred, Padding padding)
Raises the Click event.
protected virtual void OnCloseButtonMouseUp(object sender, MouseEventArgs e)
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when the mouse moves over the item, handling highlight and border highlight effects.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Renders the background fill of the element within the specified rectangle using the provided graphics context, rotation angle, and scaling factor.
protected override void PaintFill(IGraphics graphics, float angle, SizeF scale, RectangleF rect)
The graphics context used for painting operations.
anglefloatThe rotation angle in degrees to apply during painting.
scaleSizeFThe scaling factors to apply for width and height during painting.
rectRectangleFOverrides:
protected virtual void RestoreDefaulTabState()
protected virtual void SetDragTabState(DragDirection direction, int deltaX)