This project has moved. For the latest updates, please go here.

PropertyGrid styling (combobox trouble)

Jun 29, 2013 at 6:56 PM
Edited Jun 29, 2013 at 6:59 PM
I'm trying to create new theme for PropertyGrid (just change color). Because PropertyGrid is a composite control I also changed color in some other controls (such as WatermarkTextBox, NumericUpDown). That was in Xceed.Wpf.Toolkit source. After that I applied my style to standard controls (Button, ComboBox, ListView and etc.) in my project and everything is fine except combobox in PropertyGrid (combobox on my form looks fine). I know that this control is exactly combobox because
EnumComboBoxEditor : ComboBoxEditor : TypeEditor<System.Windows.Controls.ComboBox>

Image

What did I wrong?
Developer
Jul 4, 2013 at 11:45 AM
In the class "ComboBoxEditor", there is an override of SetControlProperties(), which force a new style to the Editor. In v2.1 of the Toolkit, this part has been removed to be able to set a new style for property editors in XAML, making it easier to theme.