Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Highlighting the text in XamComboEditor with mouse click
posted

Hi,

I want following behaviour in XamComboEditor: when I do the mouse left click, it should select the text displayed in the combo box. I have tried to use GotMouseCapture event and comboEditor.Focus() but it is not working. Below is the parts of the code:

Xaml:

<ig:XamComboEditor
Name="xamSearchBox"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Standard"
IsEditable="True"
DropDownButtonDisplayMode="Focused"
AllowDropDownResizing="True"
GotMouseCapture="xamSearchBox_GotMouseCapture"
>

C#:

private void xamSearchBox_GotMouseCapture(object sender, System.Windows.Input.MouseEventArgs e)
{
   xamSearchBox.Focus();
}

 

Parents Reply Children
No Data