[]
        
(Showing Draft Content)

C1.WPF.OutlookBar.C1OutlookBar

C1OutlookBar Class

Group menus and controls into distinct categories with this side bar navigation system

Namespace: C1.WPF.OutlookBar
Assembly: C1.WPF.OutlookBar.4.6.2.dll
Syntax
[TemplatePart(Name = "ExpandButton", Type = typeof(Button))]
[TemplatePart(Name = "HeaderPresenter", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "ContentPresenter", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "ContentSplitter", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "OverflowBackground", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "HorizontalResizer", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "DropButton", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "Menu", Type = typeof(C1HierarchicalPresenter))]
[TemplatePart(Name = "IconPresenter", Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = "Left", GroupName = "DockStates")]
[TemplateVisualState(Name = "Right", GroupName = "DockStates")]
[TemplateVisualState(Name = "Expanded", GroupName = "ExpansionStates")]
[TemplateVisualState(Name = "Collapsed", GroupName = "ExpansionStates")]
public class C1OutlookBar : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1OutlookBar()

Initializes a new instance of a C1OutlookBar.

Fields

Name Description
CollapsedContentProperty

Identifies the CollapsedContent dependency property.

CollapsedTemplateProperty

Identifies the CollapsedTemplate dependency property.

ContentTemplateProperty

Identifies the ContentTemplate dependency property.

DockProperty

Identifies the Dock dependency property.

ExpandedWidthProperty

Identifies the ExpandedWidth dependency property.

FirstOverflowIndexProperty

Identifies the FirstOverflowIndex dependency property.

IsExpandedProperty

Identifies the IsExpanded dependency property.

ItemBackgroundProperty

Identifies the ItemBackground dependency property.

ItemForegroundProperty

Identifies the ItemForeground dependency property.

LargeIconTemplateProperty

Identifies the LargeIconTemplate dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

SelectedItemProperty

Identifies the SelectedItem dependency property.

ShowFewerButtonsCommandProperty

Identifies the ShowFewerButtonsCommand dependency property.

ShowMoreButtonsCommandProperty

Identifies the ShowMoreButtonsCommand dependency property.

SmallIconTemplateProperty

Identifies the SmallIconTemplate dependency property.

UnselectedContentModeProperty

Identifies the UnselectedContentMode dependency property.

Properties

Name Description
CollapsedContent

Gets or sets a value to display in the content area when the control is collapsed.

CollapsedTemplate

Gets or sets the DataTemplate to apply to CollapsedContent.

ContentTemplate

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

Dock

Gets or sets the side taken by the control.

ExpandedWidth

Gets or sets the horizontal size of the whole control when in expanded mode.

FirstOverflowIndex

Gets or sets the index of the first item that causes overflow.

IsExpanded

Gets or sets a value that indicates whether the content of the selected item is shown.

ItemBackground

Gets or sets the Brush used as background of the contained C1OutlookItems.

ItemForeground

Gets or sets the Brush used as foreground of the contained C1OutlookItems.

LargeIconTemplate

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

MouseOverBrush

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

SelectedBackground

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

SelectedIndex

Gets or sets the index of the currently selected C1OutlookItem.

SelectedItem

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

ShowFewerButtonsCommand

Gets the ICommand that decrements FirstOverflowIndex.

ShowMoreButtonsCommand

Gets the ICommand that increments FirstOverflowIndex.

SmallIconTemplate

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

UnselectedContentMode

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

Methods

Name Description
ChangeVisualStateDock(bool)

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

ChangeVisualStateExpansion(bool)

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

ClearContainerForItemOverride(DependencyObject, object)
GetContainerForItemOverride()
IsItemItsOwnContainerOverride(object)
MeasureOverride(Size)
OnApplyTemplate()

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

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnItemsChanged(NotifyCollectionChangedEventArgs)
PrepareContainerForItemOverride(DependencyObject, object)

Events

Name Description
SelectedIndexChanged

Event raised when the SelectedIndex property has changed.

SelectedItemChanged

Event raised when the SelectedItem property has changed.