Change style of the combobox editor

Is there a way to change the style of the ComboBox Editor within the property grid.


3 Replies

SG Sangeetha Ganesan Syncfusion Team August 21, 2021 06:26 AM UTC

Hi Yash, 
 
Thanks for contacting Syncfusion Support.     
 
We have checked your query “How can we change the style of the ComboBox editor in Propertygrid” and prepared the sample to achieve the requirement . Please find the below sample for your reference. If we misunderstand your query, please share more details on it. 
 
 
Please let us know if you have any other concerns. We will be glad to assist you.  
 
Regards, 
Sangeetha G 



SW SwabianInstruments August 21, 2021 10:03 AM UTC

Hello Sangeetha,


The sample you provided applies the style for 'All ComboBoxes' in this window or UserControl. This is not what we want. Combobox outside the Property grid should have the default style defined by the current theme.

We want to apply a style to ComboBox within a property grid.

Ideally, something like: 

<sf:PropertyGrid ComboBoxStyle={DynamicResource StyleName} />


Background:

We use the FluentLight and MaterialDark themes. With the approach, you suggested we cannot change the style of the Combobox at runtime based on the theme.


Best regards,

Yash



SN Sudharsan Narayanan Syncfusion Team August 24, 2021 03:30 AM UTC

Hi Yash,

Thanks for the update,

We have checked your query “How can we change the style of the ComboBox editor in Propertygrid” and prepared the sample to achieve the requirement. We can achieve the style by using custom editor of property grid in Create method. Please find the below sample and documentation for your reference. If we misunderstand your query, please share more details on it. 

Sample: https://www.syncfusion.com/downloads/support/forum/168219/ze/ComboBoxStyle693427815

Documentation: https://help.syncfusion.com/wpf/propertygrid/customeditor-support

Please let us know if you have any other concerns. We will be glad to assist you. 

Regards,
 
Sudharsan

Loader.
Up arrow icon