Problem backporting PropertyStatus from 4.2 to 3.8.x

Problem backporting PropertyStatus from 4.2 to 3.8.x

Old forum URL: forums.lhotka.net/forums/t/10803.aspx


stefan posted on Monday, October 24, 2011

I am using csla 3.8.4 compiled under .NET 4.

In order to be able to use CollectionViewSource together with the PropertyStatus control  in my WPF project as it is shown in the samples, I wanted to backport the PropertyStatus implementation into my version of 3.8.4. So far it compiles, but the error image does not show up when a rule is broken...

It seems that the new PropertStatus control reponds to changes in the BrokenRules collection in a different way as it did in version 3.8.x,

So before diving too deep into the csla 4.x code base, I better ask, what else needs to be changed  to make the new PropertyStatus control work with the "old" validation subsystem, so that I can use CollectionViewSource?

Or maybe this is a dead end road...?

RockfordLhotka replied on Tuesday, October 25, 2011

PropertyStatus is in 3.8.4 already, doesn't that meet your needs?

In any case, there were some differences (quirky stuff) around style state names that broke code from .NET 3.5 to 4. So when you bring PropertyStatus from CSLA 4 to 3.8, you'd also need to bring the style from generic.xaml too.

stefan replied on Friday, October 28, 2011

Thank you!

But I already had changed that style with no luck. There must have been some stupid oversight from my side.

I finally went back to the 3.8 implementation with just one little change: In PropertyStatus.cs, I replaced the method 'GetRealSource' with the version from CLSA 4. This version tests for ICollectionView.

So far it seems to do the trick, and I can use CollectionViewSource in the resource dictionaries...

No need to use Bxf.ModelManager any more!

Copyright (c) Marimer LLC