添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Class RadComboBox

Represents a selection control with a drop-down list that can be shown or hidden by clicking the arrow on the control.

Gets or sets the value indicating whether selection via autocomplete is performed when a partial or a full match is found.

Declaration
public ComboBoxAutoCompleteSelectionMode AutoCompleteSelectionMode { get; set; }

Gets or sets the value specifying whether typing a text in a RadComboBox should change the selection or not. This property is applicable only when the DropDown of the control is opened.

Declaration
public Nullable<bool> CanAutocompleteSelectItems { get; set; }

Gets or sets the value specifying whether the keyboard navigation in a RadComboBox should change the selection.

Declaration
public Nullable<bool> CanKeyboardNavigationSelectItems { get; set; }

Gets or sets the content of the button clearing the selection. This is a dependency property.

Declaration
public object ClearSelectionButtonContent { get; set; }

Gets or sets the visibility of the button clearing the selection. This is a dependency property.

Declaration
public Visibility ClearSelectionButtonVisibility { get; set; }

Represents a user defined data value that can be passed to the command when it is executed.

Declaration
public object CommandParameter { get; set; }

Gets or sets the DataTemplate that should be applied on the selection box ContentPresenter when there is no selection. This is a dependency property.

Declaration
public DataTemplate EmptySelectionBoxTemplate { get; set; }

Gets or sets a string that should be displayed in the selection box ContentPresenter when there is no selection. This is a dependency property.

Declaration
public string EmptyText { get; set; }

Gets or sets the value that indicates whether the RadComboBox dropdown is currently open. This is a dependency property.

Declaration
public bool IsDropDownOpen { get; set; }

Gets or sets a value indicating whether tab navigation inside the drop down portion of control is enabled. The property affects only non editable RadComboBox This is a dependency property.

Declaration
public bool IsDropDownTabNavigationEnabled { get; set; }

Gets or sets a value that enables or disables editing of the text in text box of the RadComboBox. This is a dependency property.

Declaration
public bool IsEditable { get; set; }

Gets or sets the value indicating whether the filtering is enabled. This is a dependency property.

Declaration
public bool IsFilteringEnabled { get; set; }

Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements.

Declaration
public bool IsKeyboardFocusWithin { get; }

Gets or sets the value indicating whether the instance will respond to MouseWheel events when the dropdown is not open.

Declaration
public bool IsMouseWheelEnabled { get; set; }

Gets or sets a value that enables selection-only mode, in which the contents of the RadComboBox are selectable but not editable. This is a dependency property.

Declaration
public bool IsReadOnly { get; set; }

Gets a value indicating whether the watermark of this instance should be visible, or not.

Declaration
public bool IsWatermarkVisible { get; }

Gets or sets the maximum height for a RadComboBox drop-down. This is a dependency property.

Declaration
public double MaxDropDownHeight { get; set; }

Gets the minimum width of a RadComboBox drop-down. This is a readonly dependency property.

Declaration
public double MinDropDownWidth { get; }

Gets or sets a value that specifies whether the dropdown should be opened when the control gets the focus, or not. This is a dependency property.

Declaration
public bool OpenDropDownOnFocus { get; set; }

Gets or sets the value that specifies the name of the event that will select the text of the TextBox when IsEditable=true.

Declaration
public SelectAllTextEvents SelectAllTextEvent { get; set; }

Gets the item that is currently visible in the selection box ContentPresenter. This is a dependency property.

Declaration
public object SelectionBoxItem { get; }

Gets the DataTemplate that will be applied on the selection box ContentPresenter. This is a dependency property.

Declaration
public DataTemplate SelectionBoxItemTemplate { get; }

Gets or sets the DataTemplate that should be applied on the selection box ContentPresenter when there is a selected item. This is a dependency property.

Declaration
public DataTemplate SelectionBoxTemplate { get; set; }

Gets or sets whether a ComboBox that is open and displays a drop-down control will remain open when a user clicks the TextBox. This is a dependency property.

Declaration
public bool StaysOpenOnEdit { get; set; }

Gets or sets the style of the TextBox into the RadComboBox. This is a dependency property.

Declaration
public Style TextBoxStyle { get; set; }

Gets or sets the current text input that the user entered when IsEditable=false or IsReadOnly=true.

Declaration
protected string TextInputString { get; set; }

Gets or sets value indicating whether to update the selection only when the focus moved out of the control or Enter key is pressed. The property affects only editable and single selection RadComboBox . This is a dependency property.

Declaration
public bool UpdateSelectionOnLostFocus { get; set; }

Gets or sets a value that indicates if the Text of the control should be updated when the LostFocus event is raised. This is a dependency property.

Declaration
public bool UpdateTextOnLostFocus { get; set; }

When overridden in a derived class, undoes the effects of the System.Windows.Controls.ItemsControl.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object) method.

Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

The container element.

Contains the text input logic of RadComboBox when the control is not editable. This method is called from a TextInput event handler.

Declaration
protected virtual bool HandleTextInput(string text)
Parameters
System.String

The text from the corresponding TextCompositionEventArgs.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate .

Declaration
public override void OnApplyTemplate()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

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

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

Called before the System.Windows.UIElement.MouseWheel event occurs to provide handling for the event in a derived class without attaching a delegate.

Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
System.Windows.Input.MouseWheelEventArgs

A System.Windows.Input.MouseWheelEventArgs that contains the event data.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

Element used to display the specified item.