PropertyModelBase and IPropertyModel

Grids for WPF Forum

Posted 7 years ago by Erel Uziel
Version: 17.2.0661

We are upgrading from PropertyGrid to the new grid.

Previously we had a custom property item class that extended PropertyDataAccessorBase.

I understand that we need to instead extend PropertyModelBase. However PropertyModelBase doesn't seem to implement the IPropertyModel interface.

So we also need to implement the IPropertyModel interface and end with many very similar properties. For example: IsModifiedResolved and IsModified.

Are we doing something wrong?

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Erel,

PropertyModelBase implements some core pieces but other IPropertyModel members are implemented in inheriting classes.  An inheriting class that does fully implement IPropertyModel is CachedPropertyModelBase.  That class has many properties like IsModifiedCore (with "Core" in name) that are protected abstract/virtual and you can override them to provide custom logic.

Alternatively there also is the basic PropertyModel class that implements IPropertyModel.  Its usage is meant for creating it and setting its properties externally how you need.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.