[]
        
(Showing Draft Content)

C1.Framework.DropDownFormBase

DropDownFormBase Class

Represents a base drop down form for the drop down control.

Namespace: C1.Framework
Assembly: C1.Win.8.dll
Syntax
public abstract class DropDownFormBase : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IDropDownForm, IDisposable, IMessageFilter, ISupportUia, ISupportUiaContainer

Constructors

Name Description
DropDownFormBase(IDropDownOwner)

Initializes a new instance of the DropDownFormBase class.

Properties

Name Description
AlwaysPostChanges

If this flag is set, the changes to the control Value can only be cancelled explicitly, with Esc key or using the CloseForm method, and implicit cancellation (when the form is closed because it loses focus) is disabled.

BorderColor

Gets or sets the border color if a value of the PlainBorders property is true.

ClosingUp

This flag is True when we should not close the popup Form from the Deactivate event.

Control

Gets or sets the control that hosted on this dropd down form.

Corners

Gets or sets the radii of the element corners.

CreateParams
DropDownOwner

Gets the drop-down owner.

Focusable

Gets or sets a flag indicates that DropDownFormBase can contain focus.

FormSizingMode

Gets or sets the border sizing mode. This option works if the PlainBorders is true.

HasShadow

Gets or sets a flag indicating if the drop down form has a shadow displayed.

IgnoreNextDeactivate

This flag is set when the user clicks the drop-down button in menu while this drop-down is already open.

InternalFocusMovement

Gets or sets a value indicating that all focus movements are internal and should not be processed as caused by user input.

NoCancelOnEscape

If this flag is set, pressing the Esc key does not close the form.

NoHideOnItemClick

If true, the form will not be closed when the user clicks some item on this form or on a child form.

NoPostOnEnter

If this flag is set, pressing the Enter key does not close the form.

PlainBorders

Gets or sets a value indicating that the form draws a plain border, use this property with the Corners and BorderColor properties.

Methods

Name Description
ApplyDropDownAlign(ref int, ref int, ref int, ref int, Rectangle)

Applies the align to the dropdown form.

ApplyStyle(BaseStyle, int)

Applies the style to drop down form.

CheckHover()

Checks the element under the mouse and updates the control state.

CloseAllForms()

Closes this and all child dropdown forms.

CloseDropDown(bool)

Closes the drop down form.

CloseForm()

Closes the drop down form and activates the parent form.

CreateHandle()
Dispose(bool)

Releases the unmanaged resources used by the DropDownFormBase control.

GetBorderSize()

Returns the size of the border.

GetContentSize()

Returns the initial size for drop down form.

GetInnerItems(UiaItem)

Gets a collection of inner Uia items.

GetOwnerBounds()

Returns the bounds of the view in which the dropdown form belongs.

GetParentForm()

Returns a parent form of the drop down control.

ItemClicked(Element, bool, bool)

Handles a click on an item on a dropdown form.

OnDeactivate(EventArgs)
OnKeyPress(KeyPressEventArgs)
OnOwnerDropDownClosed()

Raises the DropDownOwner.DropDownClosed event.

OnOwnerDropDownOpened()

Raises the DropDownOwner.DropDownOpened event.

OnVisibleChanged(EventArgs)
OpenForm()

Opens the drop down form at the top of other windows.

PrepareDropDownLocation(ref int, ref int, ref int, ref int, Rectangle)

Prepares location of drop down form.

RefreshBounds()

Refreshes bounds of the drop down form.

SetBoundsCore(int, int, int, int, BoundsSpecified)
WndProc(ref Message)