[英]DevExpress: How to change the backcolor of a SearchLookUpEdit control
I want to change the BackColor of the PopUp control that is shown if you select the DropDown button in an SearchLookUpEdit but I can't find an appropriate property to do this. 我想更改如果在SearchLookUpEdit中选择DropDown按钮时显示的PopUp控件的BackColor,但我找不到合适的属性来执行此操作。
Btw. 顺便说一句。 I use a defaultLookAndFeel object with Style set to "UltraFlat" so I can't define it within the skin.
我使用默认样式设置为“ UltraFlat”的defaultLookAndFeel对象,因此无法在皮肤中定义它。
With a little help from devexpress support: http://www.devexpress.com/Support/Center/p/Q345598.aspx 在devexpress支持的一点帮助下: http : //www.devexpress.com/Support/Center/p/Q345598.aspx
Private Sub SearchLookUpEdit1_Popup(sender As System.Object, _
e As System.EventArgs) Handles SearchLookUpEdit1.Popup
Dim popupControl As Control = CType(sender, IPopupControl).PopupWindow
popupControl.BackColor = Color.LightBlue
Dim lc As LayoutControl = CType(popupControl.Controls(2).Controls(0), LayoutControl)
Dim lcgroup As LayoutControlGroup = CType(lc.Items(0), LayoutControlGroup)
lcgroup.AppearanceGroup.BackColor = Color.LightBlue
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.