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

Hide the red border of error on collapsing property category

Feb 7, 2013 at 11:13 AM
I'm displaying few integer and double properties of a class in WPF extended toolkit's Property Grid.
On invalid entry in any property, a red colored rectangular border appears across the property.
If I collapse the category where this property exists, the border remains visible, it does not hides.

Please tell me how to hide this red colored rectangular border.

Feb 7, 2013 at 6:10 PM
Quickly I couldn't reproduce your issue in the PropertyGrid default sample app.
Try to open an Issue and provide a simple app that reproduce the problem and attach it to the issue
Feb 8, 2013 at 4:54 AM
Please have a look at sample application
In XAML, property grid with properties definition and editor template as:
         <xctk:PropertyGrid x:Name="propertyGrid" >
                    <xctk:PropertyDefinition Name="ID1"    />
                    <xctk:PropertyDefinition Name="ID2"    />
                    <xctk:PropertyDefinition Name="ID3"    />
                                <Binding Path="Value" ValidatesOnDataErrors="True" NotifyOnValidationError="True"                                                UpdateSourceTrigger="PropertyChanged" Mode="TwoWay" >
                                        <DataErrorValidationRule />
In MyClass.cs file, I've few properties of type INT as ID1,ID2 and so on as.
    [DisplayName("Emp ID 1")]
    public int ID1 { get; set; }
In XAML.cs file, I've set the itemsource of property Grid as:
    public Window1()
        propertyGrid.SelectedObject = new MyClass();
Due to (NotifyOnValidationError="True") set to true in xaml, I get a validation error if any alphabet is entered in textbox
and a red colored border is visible across the property.
If I collapse the category, the border remains visible, it does not hides.

Hope you got my problem. Please help me out. Not able to get rid of it.

Feb 8, 2013 at 12:03 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.