WPF BusinessListBase IsSavable/IsDirty #3331
-
I'm using WPF and CSLA .NET 6.2.2. I want to use CSLA's IsSavable and IsDirty from BusinessListBase class type in WPF to enable/disable button but it does not work. It does work for BusinessBase, but not for BusinessListBase. Why is that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
iirc, this is because The historical reason why BLB doesn't have managed properties or other things like BB is that Windows Forms and Web Forms didn't support binding to properties of a list. It wasn't until WPF that such a thing was possible. There's actually a backlog item to make BLB have all the BB capabilities: #1830 I think you may be able to work around this though, if you handle the That said, I'm a bit surprised that this isn't automatic - but it may be for the reasons I've listed here. |
Beta Was this translation helpful? Give feedback.
iirc, this is because
BusinessListBase
(BLB) doesn't raisePropertyChanged
events likeBusinessBase
(BB).The historical reason why BLB doesn't have managed properties or other things like BB is that Windows Forms and Web Forms didn't support binding to properties of a list. It wasn't until WPF that such a thing was possible.
There's actually a backlog item to make BLB have all the BB capabilities: #1830
I think you may be able to work around this though, if you handle the
ChildChanged
event in your list class, and callPropertyHasChanged("IsSavable")
andPropertyHasChanged("IsDirty")
when a child changes.That said, I'm a bit surprised that this isn't automatic - but it may be for the re…