Hi,
How can I get the findPanel backcolor? Because I add a userControl on the findpanel but when I change skin, the backcolor of my usercontrol get the backcolor of xtraform and the findpanel has most often a different backcolor.
I search in the gridControl.appearence property but all backcolor = 0.
Can you help me?
thank you,
Gwenaël
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Gwenael,
FindPanel uses the "Control" color from the skin currently applied to GridControl. To get this color, use the following code:
Skin gridSkin = CommonSkins.GetSkin(gridControl1.LookAndFeel); Color controlColor = gridSkin.Colors["Control"];
Thanks,
Ted
Hi,
I try your solution but it is not the good color. For exemple, if you choose caramel skin, you will see that 'control' color = A: 255, R:247 G:245 B:241 but is is the backcolor of gridcontrol I think, the findpanel has a color like : A:255 R:238 G:233 B:221
thank gwenaël
Hi Gwenael,
To accomplish this task use the following approach:
We hope that you find this information helpful.
Thanks,
Svetlana
Hi Svetlana,
thank you for your answer, this solution works well.
Hi,
Please do not hesitate to contact us in case of any difficulty. We will be happy to help you resolve any problem! :)
Thanks,
Svetlana