Updates a child property by creating a replacement parent instance through its type converter.
Definition
Namespace:Telerik.WinControls.UI.PropertyGridData
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ImmutableItemAccessor : DescriptorItemAccessor, IItemAccessor
Inheritance: objectItemAccessorDescriptorItemAccessorImmutableItemAccessor
Implements:
Inherited Members
Constructors
Associates the descriptor with the item representing a property of a converter-created object.
public ImmutableItemAccessor(PropertyGridItem owner, PropertyDescriptor descriptor)
The item that uses this accessor.
descriptorPropertyDescriptorThe descriptor for the child property.
Properties
Gets the descriptor value or asks the parent converter to create a replacement instance containing the assigned value.
public override object Value { get; set; }
Overrides:
The base getter returns exceptions that escape property lookup or multi-object context setup as the value. Per-object path-resolution exceptions caught inside the multi-object helper are absorbed and may result in a null value. The setter reads the other properties from the current parent instance and passes the updated property set to CreateInstance(ITypeDescriptorContext, IDictionary). An exception from CreateInstance(ITypeDescriptorContext, IDictionary) is shown in a message box; a non-null result is passed to the parent item's Value setter, which can reject or cancel it. Exceptions raised while preparing the property set are not handled here.