Opening a ColorPickerPalette from codebehind

Hello,

I have an issue with a ColorPickerPalette, which I want to open programmatically (C#). 

I have a WPF application with a range of components, among which is a ColorPickerPalette control, which is normally displayed like a button with a small dropdown arrow and a color rectangle.

I want to make the palette appear as if the "drop down" arrow has been clicked by the mouse, but I want to do that from codebehind. How can that be done?

Thank you in advance.

1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team July 25, 2018 11:19 AM UTC

Hi Lasse

Thank you for Contacting Syncfusion Support.

We have checked the reported requirement that you want to open the dropdown of ColorPickerPalette programmatically. However, we don't have a direct property for this purpose, but it can be achieve it using IsExpanded property. This property is used to expand the DropDown of ColorPickerPalette on startup of an application and however we have achieve this by handling it . Please download the sample for the same from following location:

Sample: http://www.syncfusion.com/downloads/support/forum/138852/ze/WPF_ColorPickerPalette-330221871 

Please try this solution and let us know if it is helpful.

Regards
Vijayalakshmi V.R. 


Loader.
Up arrow icon