开发者

How to force a WPF ComboBox to show its items list?

开发者 https://www.devze.com 2023-02-03 12:08 出处:网络
I have a Button and a hidden WPF ComboBox. When the b开发者_StackOverflowutton is pressed, the ComboBox must be shown and be ready to select an item from its list.

I have a Button and a hidden WPF ComboBox. When the b开发者_StackOverflowutton is pressed, the ComboBox must be shown and be ready to select an item from its list.

How can the ComboBox drop down list be forced to show programmatically?


To open the drop down.

    combo.IsDropDownOpen = true;


Have you tried:

ComboBox1.DroppedDown = True
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号