I need to open a ComboBox when the user perform a tap on a button, any idea? I have searched a lot but I haven't find useful stuff.
Try this,
private void Button_Click(object sender, RoutedEventArgs e)
{
Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => comboBox1.IsDropDownOpen = true);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.