menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfDropdownEntry - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfDropdownEntry

    The SfDropDownEntry class which is base class for DropDownBase class to create SfAutoComplete and SfComboBox control.

    Inheritance
    System.Object
    SfView
    SfDropdownEntry
    DropDownListBase
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    SfView.Padding
    Namespace: Syncfusion.Maui.Core
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public abstract class SfDropdownEntry : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, ITextElement, IKeyboardListener

    Constructors

    SfDropdownEntry()

    Initializes a new instance of the SfDropdownEntry class.

    Declaration
    public SfDropdownEntry()

    Fields

    ClearButtonIconColorProperty

    Identifies ClearButtonIconColor bindable property.

    Declaration
    public static readonly BindableProperty ClearButtonIconColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the ClearButtonIconColor bindable property.

    ClearButtonPathProperty

    Identifies ClearButtonPath bindable property.

    Declaration
    public static readonly BindableProperty ClearButtonPathProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the ClearButtonPath bindable property.

    CursorPositionProperty

    Identifies the CursorPosition property. It indicates the cursor position of the SfDropdownEntry.

    Declaration
    public static readonly BindableProperty CursorPositionProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    FontAttributesProperty

    Identifies the FontAttributes bindable property.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontAttributes bindable property.

    FontAutoScalingEnabledProperty

    Identifies the FontAutoScalingEnabled bindable property.

    Declaration
    public static readonly BindableProperty FontAutoScalingEnabledProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontAutoScalingEnabled bindable property.

    FontFamilyProperty

    Identifies the FontFamily bindable property.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontFamily bindable property.

    FontSizeProperty

    Identifies the FontSize bindable property.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontSize bindable property.

    IsClearButtonVisibleProperty

    Identifies IsClearButtonVisible bindable property.

    Declaration
    public static readonly BindableProperty IsClearButtonVisibleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the IsClearButtonVisible bindable property.

    IsDropDownOpenProperty

    Identifies IsDropDownOpen bindable property.

    Declaration
    public static readonly BindableProperty IsDropDownOpenProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the IsDropDownOpen bindable property.

    MaxDropDownHeightProperty

    Identifies MaxDropDownHeight bindable property.

    Declaration
    public static readonly BindableProperty MaxDropDownHeightProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the MaxDropDownHeight bindable property.

    PlaceholderColorProperty

    Identifies PlaceholderColor bindable property.

    Declaration
    public static readonly BindableProperty PlaceholderColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the PlaceholderColor bindable property.

    PlaceholderProperty

    Identifies Placeholder bindable property.

    Declaration
    public static readonly BindableProperty PlaceholderProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the Placeholder bindable property.

    StrokeProperty

    Identifies Stroke bindable property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the Stroke bindable property.

    TextColorProperty

    Identifies the TextColor bindable property.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TextColor bindable property.

    Properties

    ClearButtonIconColor

    Gets or sets a color that describes the color of clear button.

    Declaration
    public Color ClearButtonIconColor { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    Specifies the value for clear button. The default value is Colors.Black.

    ClearButtonPath

    Gets or sets the value of the ClearButtonPath. This property can be used to customize the clear button.

    Declaration
    public Path ClearButtonPath { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Shapes.Path

    The default value is null.

    CursorPosition

    Gets or sets the position of the cursor in SfDropdownEntry.

    Declaration
    public int CursorPosition { get; set; }
    Property Value
    Type Description
    System.Int32

    Specifies the position of the cursor. The default value is 0.

    FontAttributes

    Gets or sets a font attributes for text.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.FontAttributes

    Specifies the font attributes value for text.

    FontAutoScalingEnabled

    Enables automatic font size adjustment based on device settings.

    Declaration
    public bool FontAutoScalingEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    FontFamily

    Gets or sets a font family for text.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    Specifies the font family value for text.

    FontSize

    Gets or sets a font size for text.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    Specifies the font size value for text.

    IsClearButtonVisible

    Gets or sets a value indicating whether the clear button should be visible or not.

    Declaration
    public bool IsClearButtonVisible { get; set; }
    Property Value
    Type Description
    System.Boolean

    Specifies the value whether the clear button is visible or not. The default value is false.

    IsDropDownOpen

    Gets or sets a value indicating whether the drop down is in open or closed state.

    Declaration
    public bool IsDropDownOpen { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false.

    MaxDropDownHeight

    Gets or sets the maximum height for a drop-down.

    Declaration
    public double MaxDropDownHeight { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 400d.

    Placeholder

    Gets or sets the text that is displayed in the control until the value is changed by a user action or some other operation.

    Declaration
    public string Placeholder { get; set; }
    Property Value
    Type Description
    System.String

    The default value is string.Empty.

    PlaceholderColor

    Gets or sets a color that describes the color of placeholder text.

    Declaration
    public Color PlaceholderColor { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    Specifies the value for place holder color. The default value is Colors.Black.

    Stroke

    Gets or sets a color that describes the stroke.

    Declaration
    public Color Stroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    Specifies the color value for stroke. The default value is Colors.LightGray.

    TextColor

    Gets or sets a text color for text.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    Specifies the text color value for text.The default value is Colors.Black.

    Methods

    ArrangeContent(Rect)

    Arrange content method.

    Declaration
    protected override Size ArrangeContent(Rect bounds)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.Rect bounds

    The bounds.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    The size.

    Overrides
    SfView.ArrangeContent(Rect)

    Finalize()

    Destructor of the SfDropdownEntry class.

    Declaration
    protected override void Finalize()

    Focus()

    Focus method for entry.

    Declaration
    public void Focus()

    MeasureContent(Double, Double)

    Measure content method.

    Declaration
    protected override Size MeasureContent(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint

    The width constraint

    System.Double heightConstraint

    The height constraint.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    The size.

    Overrides
    SfView.MeasureContent(Double, Double)

    OnDraw(ICanvas, RectF)

    Declaration
    protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.ICanvas canvas
    Microsoft.Maui.Graphics.RectF dirtyRect
    Overrides
    SfView.OnDraw(ICanvas, RectF)

    OnDropdownOpening()

    Declaration
    protected virtual void OnDropdownOpening()

    OnFontChanged(Font, Font)

    This method hooked whenever the font changed.

    Declaration
    public void OnFontChanged(Font oldValue, Font newValue)
    Parameters
    Type Name Description
    Microsoft.Maui.Font oldValue

    oldValue.

    Microsoft.Maui.Font newValue

    newValue.

    OnHandlerChanged()

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()

    Unfocus()

    Unfocus method for entry.

    Declaration
    public void Unfocus()

    Events

    DropDownClosing

    Occurs when the dropdown popup is about to close.

    Declaration
    public event EventHandler<DropDownCancelEventArgs> DropDownClosing
    Event Type
    Type
    System.EventHandler<DropDownCancelEventArgs>

    DropdownOpened

    Occurs when the dropdown menu get opened.

    Declaration
    public event EventHandler<EventArgs> DropdownOpened
    Event Type
    Type
    System.EventHandler<System.EventArgs>

    DropdownOpening

    Occurs when the dropdown menu get opened.

    Declaration
    public event EventHandler<CancelEventArgs> DropdownOpening
    Event Type
    Type
    System.EventHandler<System.ComponentModel.CancelEventArgs>

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved