RadTabItem
Represents a tab item, the default item of the RadTabControl.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadTabItem : HeaderedContentControl, IRadTabItem
Inheritance: objectRadTabItem
Derived Classes:
Implements:
Constructors
Initializes a new instance of the RadTabItem class.
public RadTabItem()
The RadTabItem is a . Please see RadTabItem for more information.
Fields
BottomTemplateProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty BottomTemplateProperty
CloseButtonVisibilityProperty
DependencyProperty
Identifies the dependency property.
public static readonly DependencyProperty CloseButtonVisibilityProperty
DropDownContentProperty
DependencyProperty
Identifies the DropDownContent property.
public static readonly DependencyProperty DropDownContentProperty
DropDownContentTemplateProperty
DependencyProperty
Identifies the DropDownContentTemplate property.
public static readonly DependencyProperty DropDownContentTemplateProperty
DropDownContentTemplateSelectorProperty
DependencyProperty
Identifies the DropDownTemplateSelector property.
public static readonly DependencyProperty DropDownContentTemplateSelectorProperty
HeaderForegroundProperty
DependencyProperty
Identifies the HeaderForeground property.
public static readonly DependencyProperty HeaderForegroundProperty
IsBreakProperty
DependencyProperty
Identifies the dependency property.
public static readonly DependencyProperty IsBreakProperty
IsDragDisabledProperty
DependencyProperty
Identifies the IsDragDisabled property.
public static readonly DependencyProperty IsDragDisabledProperty
IsPinnedProperty
DependencyProperty
Identifies the dependency property.
public static readonly DependencyProperty IsPinnedProperty
IsSelectedProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty IsSelectedProperty
LeftTemplateProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty LeftTemplateProperty
PinButtonVisibilityProperty
DependencyProperty
Identifies the dependency property.
public static readonly DependencyProperty PinButtonVisibilityProperty
RightTemplateProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty RightTemplateProperty
TabOrientationProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty TabOrientationProperty
TabStripPlacementProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty TabStripPlacementProperty
TopTemplateProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty TopTemplateProperty
Properties
BottomTemplate
ControlTemplate
Gets or sets the template of the TabItem when the TabStripPlacement is set to Bottom. This is a dependency property.
public virtual ControlTemplate BottomTemplate { get; set; }
CloseButtonVisibility
Visibility
Gets or sets a value indicating the visibility of the close button.
public Visibility CloseButtonVisibility { get; set; }
Gets or sets the content that will appear in the DropDown menu when it is shown. This is a dependency property.
public object DropDownContent { get; set; }
DropDownContentTemplate
DataTemplate
Gets or sets the template for the MenuItem that will present this item in the DropDown menu. This is a dependency property.
public DataTemplate DropDownContentTemplate { get; set; }
DropDownContentTemplateSelector
DataTemplateSelector
Gets or sets the template selector for the MenuItem that will present this item in the DropDown menu. This is a dependency property.
public DataTemplateSelector DropDownContentTemplateSelector { get; set; }
HeaderForeground
Brush
Gets or sets the item header foreground.
public Brush HeaderForeground { get; set; }
Gets or sets a value indicating whether this instance is break.
public virtual bool IsBreak { get; set; }
true if this instance is break; otherwise, false.
Gets or sets a value indicating whether this instance can be dragged.
public bool IsDragDisabled { get; set; }
true if this instance can be dragged; otherwise, false.
Gets or sets a value indicating whether this tab item instance is pinned.
public bool IsPinned { get; set; }
Gets or sets whether the TabItem is selected. This is a dependency property.
public bool IsSelected { get; set; }
Implements:
When another item is selected, IsSelected will change to false.
Multiple TabItems with their property set to true can be added to the TabControl, only the last one to be added will be selected.
LeftTemplate
ControlTemplate
Gets or sets the left template.
public virtual ControlTemplate LeftTemplate { get; set; }
The left template.
PinButtonVisibility
Visibility
Gets or sets a value indicating the visibility of the pin button.
public Visibility PinButtonVisibility { get; set; }
RightTemplate
ControlTemplate
Gets or sets the right template.
public virtual ControlTemplate RightTemplate { get; set; }
The right template.
TabOrientation
Orientation
Gets the tab orientation.
[Browsable(false)]
public virtual Orientation TabOrientation { get; }
Gets the tab strip placement.
[Browsable(false)]
public virtual Dock TabStripPlacement { get; }
Implements:
TopTemplate
ControlTemplate
Gets or sets the top template.
public virtual ControlTemplate TopTemplate { get; set; }
The top template.
Methods
Updates the visual state of the control.
protected virtual void ChangeVisualState(bool useTransitions)
Indicates whether transitions should be used.
FindTemplateFromPosition(Dock)
ControlTemplate
Returns the template that will be used, based on the position of the TabStrip.
protected virtual ControlTemplate FindTemplateFromPosition(Dock position)
The position for which to return a template.
Returns:ControlTemplate
A control template to use.
When implemented in a derived class, provides the behavior for the "Measure" layout pass.
protected override Size MeasureOverride(Size availableSize)
The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.
Returns:Size
The size that this element determines it needs during layout, based on its calculations of child element sizes.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Creates a RadTabItemAutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
A new instance of the RadTabItemAutomationPeer.
Called before the event occurs.
protected override void OnGotFocus(RoutedEventArgs e)
The data for the event.
protected virtual void OnHeaderMouseEnter(object sender, MouseEventArgs e)
protected virtual void OnHeaderMouseLeave(object sender, MouseEventArgs e)
Called when the mouse is pressed over the header of the TabItem.
protected virtual void OnHeaderMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
The header element sender.
eMouseButtonEventArgsThe MouseEventArgs for the event.
Called when the left mouse button is release over the header of the TabItem.
protected virtual void OnHeaderMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
The header element sender.
eMouseButtonEventArgsThe MouseEventArgs for the event.
Called when the control has been initialized.
Called before the event occurs.
protected override void OnKeyDown(KeyEventArgs e)
The data for the event.
Called when the RadTabItem is loaded.
protected virtual void OnLoaded(object sender, RoutedEventArgs e)
The tab item that has loaded.
eRoutedEventArgsThe event arguments.
Called before the event occurs.
protected override void OnLostFocus(RoutedEventArgs e)
The data for the event.
Called before the System.Windows.UIElement.MouseEnter event occurs.
protected override void OnMouseEnter(MouseEventArgs e)
The data for the event.
Called before the System.Windows.UIElement.MouseLeave event occurs.
protected override void OnMouseLeave(MouseEventArgs e)
The data for the event.
Called when the item is selected.
Called when the item is unselected.
Sets the navigation mode for RadTabItem.
protected void SetNavigationMode(KeyboardNavigationMode mode)
The mode.
Updates the template of the RadTabItem based on the current TabStripPlacement.
protected void UpdateTemplate()