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 a new instance of the AdvancedTabPanel class.

public AdvancedTabPanel()

AdvancedTabPanel(bool)

Initializes a new instance of the AdvancedTabPanel class.

protected AdvancedTabPanel(bool useCustomLayoutLogic)
Parameter Type Description
useCustomLayoutLogic bool

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

Properties

ContentOrientation

Gets or sets the Orientation of the content within each tab.

public Orientation ContentOrientation { get; set; }

Property Value

Orientation:

The Orientation of the content within each tab. The default value is Horizontal.

Orientation

Gets or sets the Orientation of the child element layout.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The Orientation of the child element layout. The default value is Horizontal.

Methods

ArrangeOverride(Size)

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

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

The final area within the parent that this element should use to arrange itself and its children.

Returns

Size:

The actual size used.

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)

Returns a geometry for a clipping mask.

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

The layout slot size.

Returns

Geometry:

The clipping mask geometry.

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.

Returns

IEnumerable<AdvancedTabItem>:

The collection of tab item elements.

MeasureOverride(Size)

Measures all children given an available size and returns the element's desired size based on the size of its children.

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

The size the element is suggested to fit inside.

Returns

Size:

The desired size of the element.

OnIsItemsHostChanged(bool, bool)

Occurs when the IsItemsHost property changes.

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

The old value.

newIsItemsHost bool

The new value.

OnVisualChildrenChanged(DependencyObject, DependencyObject)

Called when the visual children collection of the visual object is modified.

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

The Visual that was removed from the collection.

visualRemoved DependencyObject

The Visual that was removed from the collection.

Fields

ContentOrientationProperty

Identifies the ContentOrientation dependency property. This field is read-only.

public static readonly DependencyProperty ContentOrientationProperty

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty