콘텐츠로 이동

TabControl class

이 콘텐츠는 아직 번역되지 않았습니다.

A tabbed control with header buttons and content display.

Guide: C# Markup reference: Content

public sealed class TabControl : Control, IIndexedSelector, ILogicalTreeHost
name description
TabControl() The default constructor.
SelectedIndex { get; set; } Gets or sets the selected tab index.
SelectedItem { get; set; } Gets the currently selected item object for selection consistency.
SelectedTab { get; } Gets the currently selected tab item.
TabPlacement { get; set; } Gets or sets where the tab headers are placed.
Tabs { get; } Gets the collection of tab items.
event SelectionChanged Occurs when the selected tab changes.
AddTab(…) Adds a tab after the existing ones.
AddTabs(…) Adds tabs after the existing ones.
ClearTabs() Removes every tab.
RemoveTabAt(…) Removes the tab at index.
const PART_HEADERS_HOST The host part of a template: a Border the control puts its row of tab headers into, with the overflow button. The control keeps laying the headers out, so a template without this part cannot show them. The selected tab’s content is shown by a ContentPresenter anywhere in the template.
static readonly SelectedIndexProperty
static readonly SelectedItemProperty
static readonly TabPlacementProperty