I have to use a preview text input event that I have to apply to all the comboboxes in my application.
example
private void cmbClass_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
cmbClass.IsDropDownOpen = true;
}
Is there anyway i can use a header(any possible way) so that i don’t have to type the preview text input in all of my comboboxes (98 in total)?
Create a style in app.xaml. This will be applied to all the comboboxes of your application but if you want this in comboboxes of a particular window then write it in the tag
<Window.Resources>or
or
you can assign a common event to all comboboxes. Write this code in your .cs file and select all comboboxes and assign this event to PreviewTextInput event.