如何更改组合框中的 PopupAnimation?
如何更改组合框中的动画以加载包含项目列表的弹出窗口? (无需为组合框制作模板即可访问弹出窗口)
How do I change the animation in a ComboBox for loading the popup that has the list of items?
(without having to make a template for the ComboBox in order to access the popup)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你能试试这个吗...
让我知道这是否有效...
Can you try this...
Let me know if this works...
要访问弹出窗口,可以执行以下操作:
显然,comboBox 是您的 ComboBox。这里的关键部分是“PART_Popup”是 ComboBox 模板中弹出窗口的名称(至少在 WPF 工具包中)。
这是加载 ComboBox 时调用的完整代码示例:
To access the popup, one can do something like this:
Where obviously comboBox is your ComboBox. The key part here is that "PART_Popup" is the name of the popup in the ComboBox template (at least in the WPF toolkit).
So an example of a full piece of code, called when the ComboBox is loaded: