In This Article

AdvancedTabPanel Class

Represents a Panel that is used by an AdvancedTabControl.

public class AdvancedTabPanel : TabPanel, IOrientedElement
Inheritance:
object Visual UIElement FrameworkElement Panel TabPanel object
Implements:
IOrientedElement

Constructors

AdvancedTabPanel()

Initializes an instance of the class.

public AdvancedTabPanel()

AdvancedTabPanel(bool)

Initializes an instance of the class.

protected AdvancedTabPanel(bool useCustomLayoutLogic)
Parameter Type Description
useCustomLayoutLogic bool

Specify true when using completely custom layout logic (i.e., overriding ArrangeOverride).

Properties

ContentOrientation

The orientation of the content within each tab.

public Orientation ContentOrientation { get; set; }

Property Value

Orientation:

The default value is Horizontal.

Orientation

The orientation of the child element layout.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The default value is Horizontal.

Methods

ArrangeOverride(Size)

Arranges and sizes the content of a TabPanel object.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

Returns

Size:

The size of the tab panel.

ArrangeTab(AdvancedTabItem, Rect, int)

Arranges a single tab When performing custom ArrangeOverride logic.

protected void ArrangeTab(AdvancedTabItem tabItem, Rect bounds, int sortOrder)
Parameter Type Description
tabItem AdvancedTabItem

The AdvancedTabItem to arrange.

bounds Rect

The target bounds for the tab item.

sortOrder int

The zero-based sort order of the tab.

GetLayoutClip(Size?)

Used to override default clipping.

protected override Geometry? GetLayoutClip(Size? layoutSlotSize)
Parameter Type Description
layoutSlotSize Size

The size of the panel.

Returns

Geometry:

A size that is the layout size of the TabPanel.

GetTabItemElements(TabLayoutKind?)

Returns the collection of tab item elements.

protected IEnumerable<AdvancedTabItem> GetTabItemElements(TabLayoutKind? layoutKind = null)
Parameter Type Description
layoutKind TabLayoutKind?

The desired tab layout kind, or null for all tabs.

Returns

IEnumerable<AdvancedTabItem>

MeasureOverride(Size)

Called when remeasuring the control is required.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

Returns

Size:

The desired size.

OnIsItemsHostChanged(bool, bool)

Indicates that the IsItemsHost property value has changed.

protected override void OnIsItemsHostChanged(bool oldIsItemsHost, bool newIsItemsHost)
Parameter Type Description
oldIsItemsHost bool

The old property value.

newIsItemsHost bool

The new property value.

OnVisualChildrenChanged(DependencyObject, DependencyObject)

Invoked when the VisualCollection of a visual object is modified.

protected override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved)
Parameter Type Description
visualAdded DependencyObject

The Visual that was added to the collection.

visualRemoved DependencyObject

The Visual that was removed from the collection.

Fields

ContentOrientationProperty

Defines the ContentOrientation property.

public static readonly DependencyProperty ContentOrientationProperty

OrientationProperty

Defines the Orientation property.

public static readonly DependencyProperty OrientationProperty

Extension Methods