In This Article

AdvancedTabPanel Class

Represents a System.Windows.Controls.Panel that is used by an AdvancedTabControl.

public class AdvancedTabPanel : TabPanel, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IOrientedElement
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Panel System.Windows.Controls.Primitives.TabPanel Object
Implements:
IOrientedElement

Constructors

AdvancedTabPanel()

Initializes a new instance of the AdvancedTabPanel class.

public AdvancedTabPanel()

AdvancedTabPanel(Boolean)

Initializes a new instance of the AdvancedTabPanel class.

protected AdvancedTabPanel(bool useCustomLayoutLogic)
Parameter Type Description
useCustomLayoutLogic System.Boolean

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

System.Windows.Controls.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

System.Windows.Controls.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 System.Windows.FrameworkElement derived class.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize System.Windows.Size

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

Returns

System.Windows.Size:

The actual size used.

ArrangeTab(AdvancedTabItem, Rect, Int32)

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 System.Windows.Rect

The target bounds for the tab item.

sortOrder System.Int32

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 System.Windows.Size

The layout slot size.

Returns

System.Windows.Media.Geometry:

The clipping mask geometry.

GetTabItemElements(Nullable<TabLayoutKind>)

Returns the collection of tab item elements.

protected IEnumerable<AdvancedTabItem> GetTabItemElements(TabLayoutKind? layoutKind = default(TabLayoutKind? ))
Parameter Type Description
layoutKind System.Nullable<TabLayoutKind>

The desired tab layout kind.

Returns

System.Collections.Generic.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 System.Windows.Size

The size the element is suggested to fit inside.

Returns

System.Windows.Size:

The desired size of the element.

OnIsItemsHostChanged(Boolean, Boolean)

Occurs when the IsItemsHost property changes.

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

The old value.

newIsItemsHost System.Boolean

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 System.Windows.DependencyObject

The System.Windows.Media.Visual that was removed from the collection.

visualRemoved System.Windows.DependencyObject

The System.Windows.Media.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

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods