Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlTabsElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTabbedFormControlTabsElement...
Implements:
Inherited Members
Constructors
public RadTabbedFormControlTabsElement()
Fields
public static RadProperty MinimumTabWidthProperty
public static RadProperty PinnedItemsPositionProperty
public static RadProperty ShowNewTabButtonProperty
public static RadProperty ShowTabCloseButtonProperty
public static RadProperty ShowTabPinButtonProperty
public static RadProperty TabHeightProperty
public static RadProperty TabSpacingProperty
public static RadProperty TabWidthProperty
Properties
Gets or sets the minimum width of the tab.
public int MinimumTabWidth { get; set; }
Gets the RadTabbedFormControlItem which stands for adding new tabs on click.
[Browsable(false)]
public LightVisualButtonElement NewItem { get; }
Gets the button element navigating the layout to show tabs to right of the currenlty visible tabs.
[Browsable(false)]
public LightVisualButtonElement NextItemsButton { get; }
Gets an observable collection holding the pinned items.
public ObservableCollection<RadTabbedFormControlItem> PinnedItems { get; }
Gets or sets whether the pinned items will be displayed at the front or at the back of the title bar.
public PinnedItemsPosition PinnedItemsPosition { get; set; }
Gets the button element navigating the layout to show tabs to left of the currenlty visible tabs
[Browsable(false)]
public LightVisualButtonElement PreviousItemsButton { get; }
Gets or sets whether the new tab button will be visible.
public bool ShowNewTabButton { get; set; }
Gets or sets whether close button will be displayed in the tab.
public bool ShowTabCloseButton { get; set; }
Gets or sets whether pin button will be displayed in the tab.
public bool ShowTabPinButton { get; set; }
Gets or sets the spacing between the tabs.
public int TabSpacing { get; set; }
Gets an read only collection holding the visible items.
public ReadOnlyCollection<RadTabbedFormControlItem> VisibleItems { get; }
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
protected virtual void ArrangeTabItem(RadElement child, float width, float height, ref float x, float y)
protected virtual void ArrangeTabItems(IList<RadTabbedFormControlItem> tabItems, float actualTabWidth, float actualHeight, ref float x, float y, bool shouldCheckForPinnedItems)
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
protected virtual LightVisualButtonElement CreateNewItemElement()
protected virtual LightVisualButtonElement CreateNextItemsElement()
protected virtual LightVisualButtonElement CreatePreviousItemsElement()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
protected virtual List<RadTabbedFormControlItem> GetTabItems()
List<RadTabbedFormControlItem>
protected virtual IList<RadTabbedFormControlItem> GetVisibleTabItems(IList<RadTabbedFormControlItem> tabItems, int count, RadTabbedFormControlElement element, RadTabbedFormControlItem centerItem)
IList<RadTabbedFormControlItem>
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.
Raises the DoubleClick event.
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:
protected virtual List<RadTabbedFormControlItem> UpdateVisibleItemsWithBackwardOffset(int count)
List<RadTabbedFormControlItem>
protected virtual List<RadTabbedFormControlItem> UpdateVisibleItemsWithForwardOffset(int count)
List<RadTabbedFormControlItem>
Events
public event EventHandler NewItemClicked