[]
        
(Showing Draft Content)

C1.WPF.Toolbar.C1ToolbarDropdownItem

C1ToolbarDropdownItem Class

C1Icon for dropdown item

Inheritance
C1ToolbarDropdownItem
Namespace: C1.WPF.Toolbar
Assembly: C1.WPF.Toolbar.4.6.2.dll
Syntax
[TemplatePart(Name = "VerticalTemplate", Type = typeof(Grid))]
[TemplatePart(Name = "HorizontalTemplate", Type = typeof(Grid))]
[TemplatePart(Name = "PopupContentPresenter", Type = typeof(ContentPresenter))]
public class C1ToolbarDropdownItem : C1DropDown
Remarks
<example>

Example 1. Drop-down with popup stack panel with buttons.

>
            <c1:C1ToolbarDropDown Padding="2" Header="Color">
              <c1:C1ToolbarDropDown.Content>
                <StackPanel Margin="2" Orientation="Horizontal">
                  <Button Margin="2" Content="Red" Foreground="Red" />
                  <Button Margin="2" Content="Green" Foreground="Green" />
                  <Button Margin="2" Content="Blue" Foreground="Blue" />
                </StackPanel>
              </c1:C1ToolbarDropDown.Content>
            </c1:C1ToolbarDropDown>

Example 2. Dropdown with popup menu.

>
            <c1:C1ToolbarDropDown Padding="2" Header="Color">
              <c1:C1ToolbarDropDown.Menu>
                <c1:C1ContextMenu>
                  <c1:C1MenuItem IsCheckable="True" Header="Red" HeaderForeground="Red" />
                  <c1:C1MenuItem IsCheckable="True" Header="Green" HeaderForeground="Green" />
                  <c1:C1MenuItem IsCheckable="True" Header="Blue" HeaderForeground="Blue" />
                </c1:C1ContextMenu>
              </c1:C1ToolbarDropDown.Menu>
            </c1:C1ToolbarDropDown>

Constructors

Name Description
C1ToolbarDropdownItem()

Initializes a new instance of a C1ToolbarDropdownItem.

Fields

Name Description
ContentBackgroundProperty

Identifies the ContentBackground dependency property.

LargeContentProperty

Identifies the LargeContent dependency property.

LargeContentTemplateProperty

Identifies the LargeContentTemplate dependency property.

LargeIconProperty

Identifies the LargeIcon dependency property.

MediumContentProperty

Identifies the MediumContent dependency property.

MediumContentTemplateProperty

Identifies the MediumContentTemplate dependency property.

MediumIconProperty

Identifies the MediumIcon dependency property.

MenuProperty

Identifies the Menu dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

MouseOverForegroundBrushProperty

Identifies the MouseOverForegroundBrush dependency property.

PopupContentProperty

Identifies the PopupContent dependency property.

PopupContentTemplateProperty

Identifies the PopupContentTemplate dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

PressedForegroundBrushProperty

Identifies the PressedForegroundBrush dependency property.

SmallContentProperty

Identifies the SmallContent dependency property.

SmallContentTemplateProperty

Identifies the SmallContentTemplate dependency property.

SmallIconProperty

Identifies the SmallIcon dependency property.

Properties

Name Description
ContentBackground

Gets or sets the content background.

LargeContent

Content for large state

LargeContentTemplate

Content template for large state

LargeIcon
MediumContent

Content for medium state

MediumContentTemplate

Content template for medium state

MediumIcon
Menu

Gets or sets the context menu which is displayed when the control is clicked.

MouseOverBrush

Mouseover background color

MouseOverForegroundBrush

Mouseover foreground color

PopupContent

Popup content of a drop down

PopupContentTemplate

DataTemplate for PopupContent

PressedBrush

Pressed background color

PressedForegroundBrush

Pressed foreground color

SmallContent

Content for small state

SmallContentTemplate

Content template for small state

SmallIcon

Methods

Name Description
MeasureOverride(Size)

Called when measuring a control.

OnApplyTemplate()

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