WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoComplete

    Show / Hide Table of Contents

    Class AutoComplete

    Represents the AutoComplet UI

    AutoComplete control provides live drop-down hints to users as they type in the keywords. It guides the user by displaying the list of the text which was previously stored or used. The user can select from the list of the text instead of entering the whole text again.

    Inheritance
    System.Object
    AutoComplete
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF;component/Controls/AutoComplete/Themes/Generic.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/ShinyRedStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2007BlueStyle.xaml")]
    [Obsolete("This control is obsolete. Use new SfTextBoxExt in Syncfusion.SfInput.WPF assembly instead.")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(AutoComplete), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/AutoComplete/Themes/TransparentStyle.xaml")]
    public class AutoComplete : ItemsControl
    Examples
    
    
    
    
    
    
    

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using Syncfusion.Windows.Tools.Controls;
    namespace AutoCompleteSample
    {
    /// 
    /// Interaction logic for Window1.xaml
    /// 
    public partial class Window1 : Window
    {
    public Window1()
    {
    InitializeComponent();
    AutoComplete autoComplete = new AutoComplete();
    autoComplete.Width = 200;
    autoComplete.Height = 23;
    this.Content = autoComplete;
    }
    }
    }
    

    Constructors

    AutoComplete()

    Initializes a new instance of the AutoComplete class.

    Declaration
    public AutoComplete()

    Fields

    CanResizePopupProperty

    Declaration
    public static readonly DependencyProperty CanResizePopupProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    CustomSourceProperty

    This property indicates custom content for auto-complete.

    Declaration
    public static readonly DependencyProperty CustomSourceProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableDropDownProperty

    Declaration
    public static readonly DependencyProperty EnableDropDownProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableSortingProperty

    Declaration
    public static readonly DependencyProperty EnableSortingProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    FileStorageNameProperty

    File name for saving history in isolate storage.

    Declaration
    public static readonly DependencyProperty FileStorageNameProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HistoryListHeightProperty

    This property defines the height of the history list.

    Declaration
    public static readonly DependencyProperty HistoryListHeightProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    index

    contains the temproary textbox caret index

    Declaration
    public static int index
    Field Value
    Type Description
    System.Int32

    IsAsyncAddContentProperty

    This property indicates mode and adds content items.

    Declaration
    public static readonly DependencyProperty IsAsyncAddContentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsAutoAppendProperty

    This property indicates type of auto complete

    Declaration
    public static readonly DependencyProperty IsAutoAppendProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsAutoCompleteItemProperty

    This property indicates whether auto completed content text is the only one correct variant.

    Declaration
    public static readonly DependencyProperty IsAutoCompleteItemProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsDropDownOpenProperty

    This property indicates state of the popup window.

    Declaration
    public static readonly DependencyProperty IsDropDownOpenProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsFilterProperty

    This property indicates whether to use filter.

    Declaration
    public static readonly DependencyProperty IsFilterProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsHistoryDropDownOpenProperty

    This property indicates state of the history popup window.

    Declaration
    public static readonly DependencyProperty IsHistoryDropDownOpenProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsHistoryProperty

    This property indicates whether to use history.

    Declaration
    public static readonly DependencyProperty IsHistoryProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsLoadCustomSourceOnToggleProperty

    this property created to load the default items

    Declaration
    public static readonly DependencyProperty IsLoadCustomSourceOnToggleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    MaxDropHeightProperty

    This property indicates the max height of the popup window.

    Declaration
    public static readonly DependencyProperty MaxDropHeightProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    PopupPlacementProperty

    This property indicates the position of the popup.

    Declaration
    public static readonly DependencyProperty PopupPlacementProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectedIndexProperty

    Declaration
    public static readonly DependencyProperty SelectedIndexProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectedItemProperty

    This property indicates the selected item

    Declaration
    public static readonly DependencyProperty SelectedItemProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectedValuePathProperty

    Declaration
    public static readonly DependencyProperty SelectedValuePathProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectedValueProperty

    Declaration
    public static readonly DependencyProperty SelectedValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectionModeProperty

    This property indicates the Selection mode

    Declaration
    public static readonly DependencyProperty SelectionModeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SeparatorCharProperty

    This property indicates the seperator character

    Declaration
    public static readonly DependencyProperty SeparatorCharProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SourceProperty

    This property indicates the state of auto complete mode.

    Declaration
    public static readonly DependencyProperty SourceProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    StringModeIndexProperty

    This Property indicates the string mode index position to search from

    Declaration
    public static readonly DependencyProperty StringModeIndexProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    StringModeProperty

    This Property indicates the string mode for search in drop-down hints

    Declaration
    public static readonly DependencyProperty StringModeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    TextProperty

    This property contains control's text content.

    Declaration
    public static readonly DependencyProperty TextProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    CanResizePopup

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

    CustomSource

    Gets or sets the value of the CustomSource dependency property.

    Declaration
    public IEnumerable CustomSource { get; set; }
    Property Value
    Type Description
    System.Collections.IEnumerable

    EnableDropDown

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

    EnableSorting

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

    FileStorageName

    Gets or sets the value of the FileStorageName dependency property.

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

    HistoryListHeight

    Gets or sets the value of the HistoryListHeight dependency property.

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

    IsAsyncAddContent

    Gets or sets a value indicating whether this instance is async add content.

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

    IsAutoAppend

    Gets or sets a value indicating whether this instance is auto append.

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

    true if this instance is auto append; otherwise, false.

    IsAutoCompleteItem

    Gets or sets a value indicating whether this instance is auto complete item.

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

    true if this instance is auto complete item; otherwise, false.

    IsDropDownOpen

    Gets or sets a value indicating whether this instance is drop down open.

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

    IsFilter

    Gets or sets a value indicating whether this instance is filter.

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

    true if this instance is filter; otherwise, false.

    IsHistory

    Gets or sets a value indicating whether this instance is history.

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

    true if this instance is history; otherwise, false.

    IsHistoryDropDownOpen

    Gets or sets a value indicating whether this instance is history drop down open.

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

    true if this instance is history drop down open; otherwise, false.

    IsLoadCustomSourceOnToggle

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

    M_HistoryListHeight

    Gets or sets the value of the m_HistoryListHeight dependency property.

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

    MaxDropHeight

    Gets or sets the value of the MaxDropHeight dependency property.

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

    PopupPlacement

    Gets or sets the value of the PopUpPlacement dependency property.

    Declaration
    public PopupPlacement PopupPlacement { get; set; }
    Property Value
    Type Description
    PopupPlacement

    SelectedIndex

    Gets or sets the index of the selected.

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

    The index of the selected.

    SelectedItem

    Gets or sets the selected item.

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

    The selected item.

    SelectedItems

    Gets the selected items.

    Declaration
    public IList SelectedItems { get; }
    Property Value
    Type Description
    System.Collections.IList

    The selected items.

    SelectedValue

    Gets or sets the selected value.

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

    The selected value.

    SelectedValuePath

    Gets or sets the selected value path.

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

    The selected value path.

    SelectionMode

    Gets or sets the selection mode.

    Declaration
    public SelectionMode SelectionMode { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.SelectionMode

    The selection mode.

    SeparatorChar

    Gets or sets the separator char.

    Declaration
    public char SeparatorChar { get; set; }
    Property Value
    Type Description
    System.Char

    The separator char.

    Source

    Gets or sets the value of the Source dependency property.

    Declaration
    public SourceMode Source { get; set; }
    Property Value
    Type Description
    SourceMode

    StringMode

    This is used to specify the string serach mode

    Declaration
    public StringMode StringMode { get; set; }
    Property Value
    Type Description
    StringMode

    StringModeIndex

    this is used to specify the index position to search

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

    Text

    Gets or sets the value of the Text dependency property.

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

    Methods

    AddHistory(Object)

    This method inputs object to history list

    Declaration
    public void AddHistory(object input)
    Parameters
    Type Name Description
    System.Object input

    AddHistory(String)

    This method adds input text to the history list.

    Declaration
    public void AddHistory(string inputText)
    Parameters
    Type Name Description
    System.String inputText

    Input text.

    AddToSelectedObjects(String)

    Adds to selected objects.

    Declaration
    public void AddToSelectedObjects(string temptext)
    Parameters
    Type Name Description
    System.String temptext

    The temptext.

    ClearAllHistory()

    This method clears all history.

    Declaration
    public void ClearAllHistory()

    ClearSourceHistory()

    This method clears history for this source.

    Declaration
    public void ClearSourceHistory()

    CreateRoot()

    This method creates some root object which depends on the source.

    Declaration
    protected virtual void CreateRoot()

    LoadHistory()

    This method loads history.

    Declaration
    public void LoadHistory()

    OnApplyTemplate()

    Called when an internal process or application calls ApplyTemplate, which is used to build the current template's visual tree.

    Declaration
    public override void OnApplyTemplate()

    OnCanResizePopupChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnCanResizePopupChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnCreateAutomationPeer()

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    System.Windows.Automation.Peers.AutomationPeer

    OnCustomSourceChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises CustomSourceChanged event.

    Declaration
    protected virtual void OnCustomSourceChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnDisplayMemberPathChanged(String, String)

    Invoked when the System.Windows.Controls.ItemsControl.DisplayMemberPath property changes.

    Declaration
    protected override void OnDisplayMemberPathChanged(string oldDisplayMemberPath, string newDisplayMemberPath)
    Parameters
    Type Name Description
    System.String oldDisplayMemberPath

    The old value of the System.Windows.Controls.ItemsControl.DisplayMemberPath property.

    System.String newDisplayMemberPath

    New value of the System.Windows.Controls.ItemsControl.DisplayMemberPath property.

    OnFileStorageNameChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises FileStorageNameChanged event.

    Declaration
    protected virtual void OnFileStorageNameChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnGotFocus(RoutedEventArgs)

    Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.

    Declaration
    protected override void OnGotFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs that contains the event data.

    OnIsAsyncAddContentChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsAsyncAddContentChanged event.

    Declaration
    protected virtual void OnIsAsyncAddContentChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsAutoAppendChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsAutoAppendChanged event.

    Declaration
    protected virtual void OnIsAutoAppendChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsAutoCompleteItemChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsAutoCompleteItemChanged event.

    Declaration
    protected virtual void OnIsAutoCompleteItemChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsDropDownOpenChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsDropDownOpenChanged event.

    Declaration
    protected virtual void OnIsDropDownOpenChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsFilterChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsFilterChanged event.

    Declaration
    protected virtual void OnIsFilterChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsHistoryChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsHistoryChanged event.

    Declaration
    protected virtual void OnIsHistoryChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnIsHistoryDropDownOpenChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises IsHistoryDropDownOpenChanged event.

    Declaration
    protected virtual void OnIsHistoryDropDownOpenChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnItemsChanged(NotifyCollectionChangedEventArgs)

    Invoked when the System.Windows.Controls.ItemsControl.Items property changes.

    Declaration
    protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    Information about the change.

    OnItemsSourceChanged(IEnumerable, IEnumerable)

    Calls OnItemsSourceChanged method of the instance, notifies

    Declaration
    protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
    Parameters
    Type Name Description
    System.Collections.IEnumerable oldValue
    System.Collections.IEnumerable newValue

    OnKeyDown(KeyEventArgs)

    Responds to the KeyDown event.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The instance that contains the event data.

    OnKeyUp(KeyEventArgs)

    Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnKeyUp(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The System.Windows.Input.KeyEventArgs that contains the event data.

    OnLostMouseCapture(MouseEventArgs)

    Invoked when an unhandled Mouse.LostMouseCapture attached event reaches an element in its route that is derived from this class.

    Declaration
    protected override void OnLostMouseCapture(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The instance containing the event data.

    Onm_HistoryListHeightChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises m_HistoryListHeightChanged event.

    Declaration
    protected virtual void Onm_HistoryListHeightChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnMaxDropHeightChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises MaxDropHeightChanged event.

    Declaration
    protected virtual void OnMaxDropHeightChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnMouseDown(MouseButtonEventArgs)

    Invoked when an unhandled Mouse.MouseDown attached event reaches an element in its route that is derived from this class.

    Declaration
    protected override void OnMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The instance that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

    OnMouseLeave(MouseEventArgs)

    Invoked whenever an unhandled

    Declaration
    protected override void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnSelected(Object, Object)

    Declaration
    public static void OnSelected(object d, object e)
    Parameters
    Type Name Description
    System.Object d
    System.Object e

    OnSelectedIndexChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnSelectedIndexChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnSelectedValueChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnSelectedValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnSelectedValueChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected void OnSelectedValueChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnSelectionChanged(SelectionChangedEventArgs)

    Raises the SelectionChanged event.

    Declaration
    protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Controls.SelectionChangedEventArgs e

    The System.Windows.Controls.SelectionChangedEventArgs instance containing the event data.

    OnSelectionModeChanged(DependencyPropertyChangedEventArgs)

    Raises the SelectionModeChanged event.

    Declaration
    protected virtual void OnSelectionModeChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data.

    OnSourceChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises SourceChanged event.

    Declaration
    protected virtual void OnSourceChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnTextChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises TextChanged event.

    Declaration
    protected virtual void OnTextChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    SaveHistory()

    Saves the history.

    Declaration
    public void SaveHistory()

    ScrollIntoAutoCompleteView()

    Causes the object to scroll into view for auto-append.

    Declaration
    protected virtual void ScrollIntoAutoCompleteView()

    ScrollIntoHistoryView()

    Causes the object to scroll into view for history.

    Declaration
    protected virtual void ScrollIntoHistoryView()

    SetSafeTextAutoAppend(String)

    Sets the safe text auto append.

    Declaration
    public void SetSafeTextAutoAppend(string insertString)
    Parameters
    Type Name Description
    System.String insertString

    The insert string.

    Events

    CustomSourceChanged

    Event that is raised when CustomSource property is changed.

    Declaration
    public event PropertyChangedCallback CustomSourceChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    FileStorageNameChanged

    Event that is raised when FileStorageName property is changed.

    Declaration
    public event PropertyChangedCallback FileStorageNameChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    HistoryListHeightChanged

    Event that is raised when m_HistoryListHeight property is changed.

    Declaration
    public event PropertyChangedCallback HistoryListHeightChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsAsyncAddContentChanged

    Event that is raised when IsAsyncAddContent property is changed.

    Declaration
    public event PropertyChangedCallback IsAsyncAddContentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsAutoAppendChanged

    Event that is raised when IsAutoAppend property is changed.

    Declaration
    public event PropertyChangedCallback IsAutoAppendChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsAutoCompleteItemChanged

    Event that is raised when IsAutoCompleteItem property is changed.

    Declaration
    public event PropertyChangedCallback IsAutoCompleteItemChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsDropDownOpenChanged

    Event that is raised when IsDropDownOpen property is changed.

    Declaration
    public event PropertyChangedCallback IsDropDownOpenChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsFilterChanged

    Event that is raised when IsFilter property is changed.

    Declaration
    public event PropertyChangedCallback IsFilterChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsHistoryChanged

    Event that is raised when IsHistory property is changed.

    Declaration
    public event PropertyChangedCallback IsHistoryChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsHistoryDropDownOpenChanged

    Event that is raised when IsHistoryDropDownOpen property is changed.

    Declaration
    public event PropertyChangedCallback IsHistoryDropDownOpenChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    MaxDropHeightChanged

    Event that is raised when MaxDropHeight property is changed.

    Declaration
    public event PropertyChangedCallback MaxDropHeightChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SelectedValueChanged

    Occurs when [selected value changed].

    Declaration
    public event PropertyChangedCallback SelectedValueChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SelectionChanged

    Occurs when [selection changed].

    Declaration
    public event SelectionChangedEventHandler SelectionChanged
    Event Type
    Type Description
    System.Windows.Controls.SelectionChangedEventHandler

    SelectionModeChanged

    Occurs when [selection mode changed].

    Declaration
    public event PropertyChangedCallback SelectionModeChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SourceChanged

    Event that is raised when Source property is changed.

    Declaration
    public event PropertyChangedCallback SourceChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    TextChanged

    Event that is raised when Text property is changed.

    Declaration
    public event PropertyChangedCallback TextChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved