New to Telerik UI for WPFStart a free 30-day trial

Implements a selectable item inside a RadComboBox.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
[TelerikToolboxCategory("Input")]
public class RadComboBoxItem : ListBoxItem

Inheritance: objectRadComboBoxItem

Derived Classes: RadRibbonComboBoxItem

Constructors

Initializes a new instance of the RadComboBoxItem class.

C#
public RadComboBoxItem()

Properties

Gets a value that indicates whether the item is highlighted. This is a dependency property.

C#
public bool IsHighlighted { get; protected set; }

Methods

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

C#
public override void OnApplyTemplate()

Called when the value of the property changes.

C#
protected override void OnContentChanged(object oldContent, object newContent)
Parameters:oldContentobject

The old value of the property.

newContentobject

The new value of the property.

Raises the event.

C#
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs

The KeyboardFocusChangedEventArgs instance containing the event data.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the IsHighlighted property is changed.

C#
protected virtual void OnIsHighlightedChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The old value of the IsHighlighted property.

newValuebool

The new value of the IsHighlighted property.

Responds to a MouseEnter event.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Called before the event occurs.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called when the user presses the left mouse button over the RadComboBoxItem.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The event data.

Called when the user releases the left mouse button over the ListBoxItem.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The event data.

Called when the RadComboBoxItem is selected in a RadComboBox.

C#
protected override void OnSelected(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The event data.

Remarks:

This method is called when the IsSelected property changes to true.

Called when the RadComboBoxItem is unselected in a RadComboBox.

C#
protected override void OnUnselected(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The event data.

Remarks:

This method is called when the IsSelected property changes to false.