PropertyModelBase and IPropertyModel

Grids for WPF Forum

Posted 2 years ago by Erel Uziel
Version: 17.2.0661
Avatar

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 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 (v2019.1 build 0681) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.