
Is there a way to dynamically change the readonly ability of a specific property? Not the whole property grid. The readonly attribute is static.
<Style TargetType="propgrid:PropertyGridDataAccessorItem">
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding DataAccessorType, RelativeSource={RelativeSource Self}}" Value="Property" />
<Condition Binding="{Binding ValueName, RelativeSource={RelativeSource Self}}" Value="Text" />
</MultiDataTrigger.Conditions>
<Setter Property="propgrid:PropertyGrid.IsReadOnly" Value="true" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
Please log in to a validated account to post comments.