Class SfDropdownEntry
The SfDropDownEntry class which is base class for DropDownBase class to create SfAutoComplete and SfComboBox control.
Implements
Inherited Members
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, IVisualTreeElement, 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. |
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. |
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. |
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. |
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 |
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
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
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
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
Unfocus()
Unfocus method for entry.
Declaration
public void Unfocus()