WPF: Soft deletes and binding?

Posted by aks on Stack Overflow See other posts from Stack Overflow or by aks
Published on 2010-03-26T14:43:25Z Indexed on 2010/03/27 0:03 UTC
Read the original article Hit count: 401

I have custom objects which implement INotifyProperyChanged and now I'm wondering if it is possible to implement soft delete which would play nicely with binding? Each object would have a IsDeleted property and if this property would be set to true than it would not be displayed in GUI. I was thinking about making a custom markup extension which would decorate Binding class but it hadn't worked out as expected. Now I'm considering using MultiBinding with IsDeleted as one of bound properties so that converter would be able to figure out which object is deleted. But this solution sounds quite complicated and boring.

Does anybody have an idea how to implement soft deletes for binding?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about binding