[]
        
(Showing Draft Content)

C1.Blazor.Input.C1DropDown

C1DropDown Class

C1DropDown provides a generic drop-down control with a Header property that determines what the user sees when the drop-down part of the control is closed, and a Content property that determines what goes into the drop-down section.

Namespace: C1.Blazor.Input
Assembly: C1.Blazor.Input.dll
Syntax
public class C1DropDown : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1DropDown()

Initializes a new instance of the C1DropDown class.

Fields

Name Description
ButtonStyleProperty

Identifies the ButtonStyle dependency property.

ChildContentProperty
DropDownBehaviorProperty
DropDownModeProperty

Identifies the DropDownMode dependency property.

DropDownStyleProperty

Identifies the DropDownStyle dependency property.

EditableHeaderProperty
HeaderProperty
IconStyleProperty

Identifies the IconStyle dependency property.

IsDropDownOpenProperty
IsEditableProperty
ShowButtonProperty

Identifies the ShowButton dependency property.

Properties

Name Description
ButtonStyle

Gets or sets the style of the button used to toggle the drop-down.

ChildContent

Gets or sets the content of the drop-down.

CollapsedButtonIcon

Gets or sets the icon used when the drop-down is collapsed.

DropDownBehavior

Gets or sets the drop-down behavior.

DropDownMode

Gets or sets the mode that the DropDown uses to display the DropDownView.

DropDownStyle

Gets or sets the style of the drop-down popup.

EditableHeader

Gets or sets the editable header.

ExpandedButtonIcon

Gets or sets the icon used when the drop-down is expanded.

Header

Gets or sets the header.

IconStyle

Gets or sets the style of the icon that is placed inside the button used to toggle the drop-down.

IsDropDownOpen

Gets or sets whether the drop-down is open.

IsDropDownOpenChanged

This callback is called when the drop-down is opened or closed.

IsEditable

Gets or sets whether it is editable.

ShowButton

Gets or sets a value that indicates whether the control should display a dropdown button.

Methods

Name Description
BuildRenderTree(RenderTreeBuilder)
Dispose(bool)
FocusAsync()

Sets the focus in the control.

InitializeAsync()

This method is called when the component is initialized.

OnAfterRender(bool)
OnInitialized()
OnIsDropDownOpenChanged()

Called when IsDropDownOpen changed.

SetPopupWidth(string)