[]
        
(Showing Draft Content)

C1.WPF.C1TabItemPresenter

C1TabItemPresenter Class

Internal element used in both C1TabItem and C1DockTabItem to avoid repetition.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplateVisualState(Name = "Selected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "Unselected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "LeftTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "TopTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "RightTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "BottomTabStripPlacement", GroupName = "TabStripPlacementStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
public class C1TabItemPresenter : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
C1TabItemPresenter()

Initializes a new instance of a C1TabItemPresenter.

Fields

Name Description
CornerRadiusProperty

Identifies the CornerRadius dependency property.

IsSelectedProperty

Identifies the IsSelected dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

ShowSelectedCuesProperty

Identifies the ShowSelectedCues dependency property.

TabShapeProperty

Identifies the TabShape dependency property.

TabStripPlacementProperty

Identifies the TabStripPlacement dependency property.

Properties

Name Description
CornerRadius

Gets or sets a value that represents the degree to which the corners of the element are rounded.

IsSelected

Gets or sets a value indicating whether the element is currently selected.

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.

ShowSelectedCues

Gets or sets a value indicating whether the selected visuals of the control are visible.

TabShape

Gets or sets the visual form of the control.

TabStripPlacement

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

Methods

Name Description
ChangeVisualStateCommon(bool)

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

ChangeVisualStateSelection(bool)

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

ChangeVisualStateTabStripPlacement(bool)

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

OnApplyTemplate()

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

OnPropertyChanged(DependencyPropertyChangedEventArgs)

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

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

Extension Methods