When I select the picklist controller in WPF and hit enter/Tab the alert is displaying. But using mouse the alert is not displaying.
PickList controller in WPF
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
When I select the picklist controller in WPF and hit enter/Tab the alert is displaying. But using mouse the alert is not displaying.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhishek YadavRank #217 · 11.3K reputationPosted Feb 23, 2024, 2:33 AM EST
Here is an example of how you can do this in your WPF application:
private void PicklistController_MouseDown(object sender, MouseButtonEventArgs e) { PicklistController.Focus(); }By adding this event handler to the picklist controller, you can ensure that it gains focus when clicked with the mouse, triggering the alert as expected. This should help resolve the issue of the alert not displaying when using the mouse to select the picklist controller in WPF.