Windows 7经典主题中的WPF组合框问题 [英] WPF Combo Box issue in Windows 7 classic theme

查看:64
本文介绍了Windows 7经典主题中的WPF组合框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在WPF窗口中使用简单的组合框控件。这是一个可编辑的组合框(IsEditable属性设置为true),其填充为"5,5,0,5"。当我们在具有经典主题的Windows 7中使用它时,单击组合
框内的空白区域(由5 pxl填充创建)将降低下拉列表。我们不希望从单击切换按钮以外的任何操作打开下拉菜单。此问题仅在具有经典主题的Windows 7中发生。

We are using simple combo box control in our WPF window. This is a editable combo box (IsEditable property set to true) which have padding of "5,5,0,5". When we use this in windows 7 with classic theme, clicking on the empty space inside the combo box (Create by 5 pxl padding) will bring down the drop down. We don't want drop down to be opened from any action other than clicking toggle button. This issue is happening only in windows 7 with classic theme.

是否有人遇到此问题或有任何解决方案?

Does anybody faced this issue or have any solution?

谢谢

Shreeraj

推荐答案

Hi Shreeraj,

Hi Shreeraj,

>> 他是一个可编辑的组合框(IsEditable属性设置为true),其填充为"5,5,0,5"。当
我们在具有经典主题的Windows 7中使用它时,单击组合框内的空白区域(由5 pxl填充创建)将关闭下拉列表。我们不希望通过点击切换按钮以外的任何操作打开下拉菜单。

根据您的说明,您说你点击组合框内的空白区域,组合框会掉下来。我不会在我身边重现这个问题,你能在这里给出一个截图和代码,让我看看你是怎么做到的?

According to your description, you said that you click on the empty space inside the combobox, the combobox will drop down. I don't reproduce this issue at my side, can you give one screenshot and code here, let me see how do you do this?

最诚挚的问候,

Cherry


这篇关于Windows 7经典主题中的WPF组合框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆