Class
RadComboBoxItem

Implements a selectable item inside a RadComboBox.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Input")]
public class RadComboBoxItem : ListBoxItem

Inheritance: objectRadComboBoxItem

Derived Classes: RadRibbonComboBoxItem

Constructors

RadComboBoxItem()

Initializes a new instance of the RadComboBoxItem class.

Declaration

cs-api-definition
public RadComboBoxItem()

Properties

IsHighlighted

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

Declaration

cs-api-definition
public bool IsHighlighted { get; protected set; }

Property Value

bool

Methods

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnContentChanged(object, object)

Called when the value of the property changes.

Declaration

cs-api-definition
protected override void OnContentChanged(object oldContent, object newContent)

Parameters

oldContent

object

The old value of the property.

newContent

object

The new value of the property.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)

Parameters

e

KeyboardFocusChangedEventArgs

The KeyboardFocusChangedEventArgs instance containing the event data.

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsHighlightedChanged(bool, bool)

Called when the IsHighlighted property is changed.

Declaration

cs-api-definition
protected virtual void OnIsHighlightedChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

The old value of the IsHighlighted property.

newValue

bool

The new value of the IsHighlighted property.

OnMouseEnter(MouseEventArgs)

Responds to a MouseEnter event.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

OnMouseLeave(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnMouseLeftButtonDown(MouseButtonEventArgs)

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

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The event data.

OnMouseLeftButtonUp(MouseButtonEventArgs)

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

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The event data.

OnSelected(RoutedEventArgs)

Called when the RadComboBoxItem is selected in a RadComboBox.

Declaration

cs-api-definition
protected override void OnSelected(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The event data.

Remarks

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

OnUnselected(RoutedEventArgs)

Called when the RadComboBoxItem is unselected in a RadComboBox.

Declaration

cs-api-definition
protected override void OnUnselected(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The event data.

Remarks

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