readonly properties

Dec 16, 2010 at 12:29 PM

I was wondering why readonly properties are displayed in a different color but are still editable.

Line 29 of StringValueEditor.cs is commented out:

// txt.IsReadOnly = !this.Property.CanWrite;

If I take this line back in, then the readonly properties can not be edited any more. I like it much better like that.

Is there any reason for removing this line?

Best Regards,

Andreas

Coordinator
Dec 16, 2010 at 3:51 PM

Not sure why that's commented out...

I looked at the rest of the code for that class and the property_PropertyChanged event handler does the check so maybe there was a reason, but I don't remember.

Anyways, thanks for letting me know!

Coordinator
Dec 26, 2010 at 7:13 AM

Changes checked in.