[]
        
(Showing Draft Content)

C1.WPF.C1TabControl

C1TabControl Class

Represents a control that contains multiple items that share the same space on the screen.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplatePart(Name = "TabPanel", Type = typeof(C1TabPanel))]
[TemplatePart(Name = "CloseButton", Type = typeof(Button))]
[TemplatePart(Name = "SelectedItemContent", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "PreviousButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "NextButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "Menu", Type = typeof(C1Menu))]
[TemplatePart(Name = "TabStripDropDown", Type = typeof(C1DropDownButton))]
[TemplateVisualState(Name = "LeftTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "TopTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "RightTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "BottomTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "Rectangle", GroupName = "ShapeStates")]
[TemplateVisualState(Name = "Rounded", GroupName = "ShapeStates")]
[TemplateVisualState(Name = "Sloped", GroupName = "ShapeStates")]
[TemplateVisualState(Name = "Ribbon", GroupName = "ShapeStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(C1TabItem))]
public class C1TabControl : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1TabControl()

Initializes a new instance of a C1TabControl.

Fields

Name Description
CanUserReorderProperty

Identifies the CanUserReorder dependency property.

ContentTemplateProperty

Identifies the ContentTemplate dependency property.

ContentTemplateSelectorProperty

Identifies the ContentTemplateSelectorProperty dependency property.

ItemContainerStyleProperty

Identifies the ItemContainerStyle dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedContentProperty

Identifies the SelectedContent dependency property.

SelectedIndexProperty

Identifies the System.Windows.Controls.TabControl.SelectedIndex dependency property.

SelectedItemProperty

Identifies the System.Windows.Controls.TabControl.SelectedItem dependency property.

ShowSingleTabProperty

Identifies the ShowSingleTab dependency property.

TabItemCloseProperty

Identifies the TabItemClose dependency property.

TabItemShapeProperty

Identifies the TabItemShape dependency property.

TabStripBackgroundProperty

Identifies the TabStripBackground dependency property.

TabStripForegroundProperty

Identifies the TabStripForeground dependency property.

TabStripHorizontalAlignmentProperty

Identifies the TabStripHorizontalAlignment dependency property.

TabStripMenuVisibilityProperty

Identifies the TabStripMenuVisibility dependency property.

TabStripOverlapDirectionProperty

Identifies the TabStripOverlapDirection dependency property.

TabStripOverlapProperty

Identifies the TabStripOverlap dependency property.

TabStripPlacementProperty

Identifies the TabStripPlacement dependency property.

TabStripVerticalAlignmentProperty

Identifies the TabStripVerticalAlignment dependency property.

UnselectedContentModeProperty

Identifies the UnselectedContentMode dependency property.

UpdateSourceCollectionProperty

Identifies the UpdateSourceCollection dependency property.

Properties

Name Description
CanUserReorder

Whether the user is allowed to drag and drop and reorder C1TabItems from this C1TabControl.

ContentTemplate

Gets or sets the DataTemplate to apply to any TabItem that does not have a ContentTemplate property defined.

ContentTemplateSelector

Gets or sets a custom logic for choosing the template used to display the content of the control

ItemContainerStyle

Gets or sets the Style applied to all contained C1TabItems

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

SelectedBackground

Gets or sets the Brush used to highlight the control when it is selected.

SelectedContent

Gets the content of the currently selected TabItem.

SelectedIndex

Gets or sets the index of the currently selected TabItem.

SelectedItem

Gets or sets the selected item or returns null if the selection is empty.

ShowSingleTab

Gets or sets a value that determines whether the tab strip is shown when the control has only one child.

TabItemClose

Gets or sets the location of the Close button.

TabItemShape

Gets or sets the geometric shape of the tabs.

TabStripBackground

Gets or sets the Brush that will be assigned to the Background of the tab strip.

TabStripForeground

Gets or sets the Brush that will be assigned to the Foreground of the tab strip.

TabStripHorizontalAlignment

Gets or sets the horizontal alignment of the group of C1TabItems.

TabStripMenuVisibility

Gets or sets the visibility of the menu listing the items.

TabStripOverlap

Gets or sets the length of the overlap between C1TabItems.

TabStripOverlapDirection

Gets or sets the Z-Index arrangement of the C1TabItems.

TabStripPlacement

Gets or sets the location of the panel with the tabs relative to the whole control.

TabStripVerticalAlignment

Gets or sets the vertical alignment of the group of C1TabItems.

UnselectedContentMode

Gets or sets what is done with the content of unselected items.

UpdateSourceCollection

Gets or sets whether changes in the order of the items are written to Items or ItemsSource.

VisibleItems

A read-only collection that contains all visible items in the C1TabControl

Methods

Name Description
BeginUpdate()

Maintains performance while items are added to the TabControl one at a time by preventing the control from updating until the EndUpdate() method is called.

ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateShape(bool)

Updates the current visual state of the Shape visual state group to match the object's properties.

ClearContainerForItemOverride(DependencyObject, object)
EndUpdate()

Resumes updating the TabControl after updates are suspended by the BeginUpdate() method.

GetContainerForItemOverride()
IsItemItsOwnContainerOverride(object)
OnApplyTemplate()

Builds the visual tree for the C1TabControl control when a new template is applied.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Called when the value of the Items property changes.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

PrepareContainerForItemOverride(DependencyObject, object)
ScrollIntoView(object)

Causes the object to scroll into view.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

ItemsChanged

Called when the value of the System.Windows.Controls.ItemsControl.Items property changes.

SelectionChanged

Occurs when selection changed.

TabItemClosed

Occurs when a C1TabItem is closed.

TabItemClosing

Occurs before a C1TabItem is closed.

VisibleItemsChanged

Occurs when the visible items change.

Extension Methods