Completed
Last Updated: 03 Jul 2017 11:25 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 01 Jun 2016 09:54
Category: PropertyGrid
Type: Bug Report
0
FIX. RadPropertyGrid - missing style for the error indicator in Windows8, VisualStudio2012Dark, Aqua themes
To reproduce: subscribe to the RadPropertyGrid.PropertyValidating event and apply ErrorMessage in some cases. If the validation fails, the error indicator is not visible in Windows8, VisualStudio2012Dark, Aqua. However, the error message is displayed as expected.

Workaround: assign an image for the ErrorIndicator

private void radPropertyGrid1_ItemFormatting(object sender, PropertyGridItemFormattingEventArgs e)
{
    PropertyGridItemElement itemElement = e.VisualElement as PropertyGridItemElement;
    if (itemElement != null)
    {
        ((PropertyGridTextElement)itemElement.TextElement).ErrorIndicator.Image = Properties.Resources.error;
    }
}
0 comments