Hi,
We have a XamPropertyGrid which we want to set to ReadOnly, based on some application-wide setting that is not related to the data that is shown in the PropertyGrid. So the data itself could still be changed, but we want to disable any controls in the applications that allows changing the data – just like with the XamPropertyGrid.
Setting IsEnabled flag of the PropertyGrid to false work fine, but this also disables the Category collapse/expand function, so if there are any collapsed categories, you can’t even view all items.
We did not found any ReadOnly option for this control which would be best match. Also tried to use editor templates but did not worked either. How we can achieve this?
We've attached example. Fallow steps:
PropertyGrid_Minimal.zip
Thanks in advance,
Tomas
Hello Tomas,
While there is no direct way to dsiable the PropertyGrid but keep the some features on or off you can write a Read Only template
Hi Michael,
Earlier provided example already has added this templates but this still does not work. Additionally, the + and - options also become enabled while this is expected to be locked in ReadOnly mode.