The cursor position of the ComboBoxBarItem is the same on its lost focus, by default. Like the ComboBox, the cursor position of the ComboBoxBarItem can be aligned to the left by handling its events, TextBoxBound, MouseUp, and LostFocus.
This event is raised when TextBox bounds in the ComboBarItem is set. By handling this event, you can access its inner TextBox.
This event is raised once Mouse selection occurs in the ComboBarItem. By handling this event, you can update the cursor position upon selection.
This event is raised when the ComboBarItem focus is lost. By handling this event, you can update its cursor position once the focus in lost.
The following code example demonstrates the same.
Figure 1: ComboBoxBarItem focused on its item selection
Figure 2: ComboBoxBarItem text is left aligned on its focus lost
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|