Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: PropertyGrid validation is not updated when collection changes [20198]

$
0
0
I have a ObservableCollection<string> property with custom validation done by IDataErrorInfo.

If one of the strings in the collection does not validate, the propertygrid does not show the validation error. If I manually redraw the control (i.e. changing back and forth between tabs in my app) the red box and the validation error info appears.

Validation of simple string properties works correct, the red box is shown immediately.

Version 2.0
Comments: ** Comment from web user: maos **

If I alter your example slightly, I can reproduce the missing PropertyGrid update.
If you change the button click handler to create a new __empty__ collection, the PropertyGrid will not update, but will still show the old collection.

private void Button_Click( object sender, RoutedEventArgs e )
{
myClass.MyCollection = new ObservableCollection<string>();
}


Viewing all articles
Browse latest Browse all 4964

Trending Articles