menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfComboBox - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfComboBox

    Represents a control that allows the user to select and edit a date by using a drop-down SfComboBox control for each DateTime part.

    Inheritance
    System.Object
    SfComboBox
    SfRibbonComboBox
    Implements
    IDataValidator
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Controls.Input
    Assembly: Syncfusion.SfInput.UWP.dll
    Syntax
    [ClassReference(IsReviewed = false)]
    public class SfComboBox : ComboBox, IDataValidator, IDisposable
    Remarks

    Constructors

    SfComboBox()

    Initializes a new instance of the SfComboBox class.

    Declaration
    public SfComboBox()

    Fields

    AutoCompleteItemsProperty

    Using a DependencyProperty as the backing store for AutoCompleteItems. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty AutoCompleteItemsProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ComboBoxModeProperty

    Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ComboBoxModeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedIndexProperty

    Using a DependencyProperty as the backing store for SelectedItem. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedIndexProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedItemProperty

    Using a DependencyProperty as the backing store for SelectedItem. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedItemProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShowClearButtonProperty

    Using a DependencyProperty as the backing store for ShowClearButton. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShowClearButtonProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WatermarkProperty

    Using a DependencyProperty as the backing store for Watermark. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty WatermarkProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WatermarkTemplateProperty

    Using a DependencyProperty as the backing store for WatermarkTemplate. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty WatermarkTemplateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WatermarkTemplateSelectorProperty

    Using a DependencyProperty as the backing store for WatermarkTemplateSelector. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty WatermarkTemplateSelectorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    ComboBoxMode

    Gets or sets the mode for the SfComboBox control.

    Declaration
    public ComboBoxModes ComboBoxMode { get; set; }
    Property Value
    Type
    ComboBoxModes
    Remarks

    The default value is DropDown

    See Also
    ComboBoxModes

    SelectedIndex

    Getsor sets the Index of the SfComboBoxItem that has been selected.

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

    The default value is -1

    SelectedItem

    Gets or sets the SfComboBoxItem that has been selected.

    Declaration
    public object SelectedItem { get; set; }
    Property Value
    Type
    System.Object

    ShowClearButton

    Gets or sets a value indicating whether to show a clear all button ("X") that appears in edit mode of combobox when text is entered

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

    Watermark

    Gets or sets the data used as WateMark

    Declaration
    public object Watermark { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    WatermarkTemplate

    Gets or sets the template for the data used as WateMark

    Declaration
    public DataTemplate WatermarkTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate

    The default value is null

    WatermarkTemplateSelector

    Gets or sets the TemplateSelector for the data used as WateMark

    Declaration
    public DataTemplateSelector WatermarkTemplateSelector { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Controls.DataTemplateSelector

    The default value is null

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    GetContainerForItemOverride()

    Checks if the item is a Syncfusion.UI.Xaml.Controls.Navigation.SfComboBoxItem

    Declaration
    protected override DependencyObject GetContainerForItemOverride()
    Returns
    Type Description
    Windows.UI.Xaml.DependencyObject

    Dependency Object

    IsItemItsOwnContainerOverride(Object)

    Checks if the item is a Syncfusion.UI.Xaml.Controls.Navigation.SfComboBoxItem

    Declaration
    protected override bool IsItemItsOwnContainerOverride(object item)
    Parameters
    Type Name Description
    System.Object item
    Returns
    Type Description
    System.Boolean

    true if it is a SfComboBoxItem; otherwise, false

    OnApplyTemplate()

    Initializes all the child elements of SfComboBox control.

    Declaration
    protected override void OnApplyTemplate()

    OnDropDownClosed(Object)

    Occurs when the SfComboBox is closed.

    Declaration
    protected override void OnDropDownClosed(object e)
    Parameters
    Type Name Description
    System.Object e

    OnDropDownOpened(Object)

    Occurs when the SfComboBox is open.

    Declaration
    protected override void OnDropDownOpened(object e)
    Parameters
    Type Name Description
    System.Object e

    OnItemsChanged(Object)

    Occurs when the SfComboBoxItem items has changed.

    Declaration
    protected override void OnItemsChanged(object e)
    Parameters
    Type Name Description
    System.Object e

    OnKeyDown(KeyRoutedEventArgs)

    Occurs when the key is pressed

    Declaration
    protected override void OnKeyDown(KeyRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.KeyRoutedEventArgs e

    OnLostFocus(RoutedEventArgs)

    Occurs when the focus is lost

    Declaration
    protected override void OnLostFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.RoutedEventArgs e

    OnSelectedIndexChanged(DependencyPropertyChangedEventArgs)

    Occurs when index of the Selected Combobox item SfComboBoxItem has changed.

    Declaration
    protected void OnSelectedIndexChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs e

    OnSelectedItemChanged(DependencyPropertyChangedEventArgs)

    Occurs when the Selected Combobox item SfComboBoxItem has changed.

    Declaration
    protected void OnSelectedItemChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs e

    Validate(ValidationEventArgs)

    Validates the states Syncfusion.UI.Xaml.Controls.Input.VisualStates

    Declaration
    public void Validate(ValidationEventArgs args)
    Parameters
    Type Name Description
    ValidationEventArgs args

    Implements

    IDataValidator
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved