Class TabItemsControl
Represents the items control that manages the collection and layout of SfTabItem objects within an SfTabControl. Handles tab reordering, drag-and-drop operations, and tear-off window functionality.
Inheritance
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfChromelessWindow.Wpf.dll
Syntax
public class TabItemsControl : ItemsControl
Constructors
TabItemsControl()
Initializes a new instance of the SfTabItemsControl class.
Declaration
public TabItemsControl()
Fields
ItemsPresenterHeightProperty
Identifies the ItemsPresenterHeight dependency property.
Declaration
public static readonly DependencyProperty ItemsPresenterHeightProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ItemsPresenterWidthProperty
Identifies the ItemsPresenterWidth dependency property.
Declaration
public static readonly DependencyProperty ItemsPresenterWidthProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
ItemsPresenterHeight
Gets or sets the height of the items presenter that contains the tab items.
Declaration
public double ItemsPresenterHeight { get; set; }
Property Value
| Type |
|---|
| System.Double |
ItemsPresenterWidth
Gets or sets the width of the items presenter that contains the tab items.
Declaration
public double ItemsPresenterWidth { get; set; }
Property Value
| Type |
|---|
| System.Double |
Methods
GetContainerForItemOverride()
Gets a container for the item being displayed in the items control.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
| Type | Description |
|---|---|
| System.Windows.DependencyObject | A new SfTabItem instance. |
IsItemItsOwnContainerOverride(Object)
Determines whether an item is its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | The item to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the item is an SfTabItem; otherwise, false. |
MeasureOverride(Size)
Measures the size of the items presenter.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | constraint | The available size constraint. |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The calculated size for the items presenter. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the item container for display.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | element | The container element. |
| System.Object | item | The item to prepare. |