OpenRIAServices / OpenRiaServices

The Open RIA Services project continues what was previously known as WCF RIA Services.
https://openriaservices.gitbook.io/openriaservices/
Apache License 2.0
54 stars 48 forks source link

Difference in validation behaviour between Silverlight and .net #91

Closed Daniel-Svensson closed 6 years ago

Daniel-Svensson commented 6 years ago

Inside the file .\OpenRiaServices.DomainServices.Client\Framework\Silverlight\Data\Entity.cs there is a different way that validation is being handled.

Silverlight calls Validator.TryValidateProperty but (in my instance) WPF calls Validator.ValidateProperty.

Inside WPF the validation does not complete as an exception is being throw if the property representing the field is invalid.

Changing the code to call Validator.TryValidateProperty (to match the Silverlight platform) continues as I would have expected.

This work item was migrated from CodePlex

CodePlex work item ID: '91' Vote count: '1'

Daniel-Svensson commented 6 years ago

[danneesset@2016-04-17] The issue will be fixed in the next 4.5.0 release.

Now that the client targets .Net 4.5 and WPF supports INotifyDataErrorInfo in bindings by default there is no longer a reason to have different validation paths for the different platosm.

Daniel-Svensson commented 6 years ago

[danneesset@2016-04-17] Fixed in changeset 51a78a739191a00da43ef523008619952ffc3167

Daniel-Svensson commented 6 years ago

Issue closed by danneesset with comment Try out 4.5.0-beta3 it should solve the isse

Reason closed Fixed