Commit Graph

601 Commits

Author SHA1 Message Date
Antony Male 3a3f06ea3e Only set a DisplayName binding if one doesn't already exist 2014-05-20 13:16:11 +01:00
Antony Male 1e6e0c4d98 Update validation rules in Stylet.Samples.ModelValidation 2014-05-20 09:11:11 +01:00
Antony Male 6c015ecd33 Display type's name as DisplayName by default 2014-05-17 12:32:50 +01:00
Antony Male 5823437a28 Support design-time application running 2014-05-16 09:46:16 +01:00
Antony Male ba8d5f338c Use PasswordBoxes in Stylet.Samples.ModelValidation 2014-05-14 12:16:37 +01:00
Antony Male 6b2c8d9583 Fix WindowManager tests 2014-05-13 17:57:15 +01:00
Antony Male bac99ab647 Refactor ValidatingModelBase slightly to support easier overriding 2014-05-13 17:56:54 +01:00
Antony Male 779df6ebcc More work on Stylet.Samples.ModelValidation 2014-05-13 13:29:02 +01:00
Antony Male 9dcce8e164 The validator might not return entries for successful properties. Make sure ValidatingModelBase handles these 2014-05-13 13:28:51 +01:00
Antony Male 43377bbe5d Start work on ModelValidator sample 2014-05-12 17:42:07 +01:00
Antony Male edea424e6b Fix deadlock in ValidatingModelBase (oops) 2014-05-12 17:24:29 +01:00
Antony Male be31aa3b88 Shut up FxCop 2014-05-12 09:55:03 +01:00
Antony Male af06ee5019 Sort out the thread-safety 2014-05-11 22:35:21 +01:00
Antony Male b89c61a91e Move View into the Xaml namespace, so it's accessible through https://github.com/canton7/Stylet 2014-05-11 20:02:21 +01:00
Antony Male 0b75df35ef Rename Execute methods 2014-05-11 19:59:23 +01:00
Antony Male fc4a7fb61c Push coverage up to 99.7% 2014-05-10 20:11:02 +01:00
Antony Male 256198d3c0 Fix Rakefile for people who haven't restored nuget packages yet 2014-05-10 13:39:25 +01:00
Antony Male a39bcfbadb Use Dispatcher instead of SynchronizationContext for synchronization.
It looks like the SynchronizationContext can now change on the same thread
(see http://msdn.microsoft.com/en-us/library/system.windows.basecompatibilitypreferences.reusedispatchersynchronizationcontextinstance%28v=vs.110%29.aspx)
meaning that we can no longer do a reference comparison between SynchronizationContext.Current
and the captured SynchronizationConext to check whether a dispatch is required.
It turns out we shouldn't have been doing this anyway.... So switch to using a Dispatcher,
which does support this stuff.

Additionally, Execute now uses an IDispatcher, which means the implementation can be switched
again in the future. It also makes unit testing easier....
2014-05-09 15:46:03 +01:00
Antony Male 5ca2508fc0 More test stuff 2014-05-09 15:43:55 +01:00
Antony Male 4a527c75d6 Push code coverage up to 98.7%, including integration tests 2014-05-09 14:40:40 +01:00
Antony Male a96ec2a6e4 Add tests for CommandAction and EventAction 2014-05-09 13:59:38 +01:00
Antony Male e38ebee6d1 Add support for running coverage for integration tests 2014-05-09 11:28:36 +01:00
Antony Male 55b23a61ed Couple lines more coverage 2014-05-08 17:44:04 +01:00
Antony Male 1e76531e36 Add test code coverage for ValidatingModelBase 2014-05-08 17:37:33 +01:00
Antony Male d56f3b5c26 Rename IValidatorAdapter back to IModelValidator, as the latter is more description of its end use 2014-05-08 13:52:53 +01:00
Antony Male fe13725062 More unit tests, more code coverage 2014-05-07 17:48:00 +01:00
Antony Male fe377e3955 Provide a decent error if unbound generic type used as an abstract factory, and fill in more coverage 2014-05-07 16:22:51 +01:00
Antony Male 6d3a222249 Fix StyletIoC bug w/ singleton unbound generics, and improve coverage further 2014-05-07 16:11:15 +01:00
Antony Male 43fe090fa9 Add more unit tests 2014-05-07 13:20:36 +01:00
Antony Male d648b264d1 Improve unit test code coverage further 2014-05-07 08:37:48 +01:00
Antony Male 5cc0ee96d2 Fix some rakefile issues 2014-05-06 18:30:04 +01:00
Antony Male 4fa4133248 Improve unit test code coverage some more 2014-05-06 17:42:55 +01:00
Antony Male e945254b14 Rakefile update 2014-05-06 13:19:13 +01:00
Antony Male 3ecb0c38c8 Improve test coverage slightly 2014-05-06 13:11:51 +01:00
Antony Male 30472cffca Don't instantiate a Lazy<IWeakEventManager> in Screen, since we don't need to 2014-05-06 12:46:59 +01:00
Antony Male 48e7de53a6 Fix some namespacing issues 2014-05-06 12:38:38 +01:00
Antony Male 1a12a4d0ed Add rake task to generate code coverage report 2014-05-06 12:21:39 +01:00
Antony Male b75cfc04ad Start work on a rakefile
This will eventually help with generating code coverage reports
2014-05-06 08:35:07 +01:00
Antony Male 13348aff28 Add synchronous versions of the validate methods on ValidatingModelBase 2014-05-04 18:53:31 +01:00
Antony Male 77f1804724 Improve some error messages given by StyletIoC 2014-05-03 10:39:41 +01:00
Antony Male 5f3ae76824 The ValidateAsync and ValidatePropertyAsync methods return whether validation passed 2014-05-03 10:00:11 +01:00
Antony Male ef01444611 Minor tweaks to ValidatingModelBase 2014-05-02 13:34:24 +01:00
Antony Male aa259c378c Add ValidatingModelBase.OnValidationStateChanged, so users can take their own action when the validation state changes 2014-05-01 18:08:27 +01:00
Antony Male a0f8590f9c Add LambdaComparer 2014-05-01 17:45:34 +01:00
Antony Male d0c62a6f15 Add ValidatingModelBase, and the validation adapter mechanism 2014-05-01 17:45:12 +01:00
Antony Male 44f1631a27 Fix bugs when using the StyletIoC syntax 'Bind(typeof(IInterface<>)).ToAllImplementations()' 2014-05-01 17:44:22 +01:00
Antony Male 998237b83d Add extra work to RedditBrowser sample 2014-04-28 12:46:58 +01:00
Antony Male 9eba316ead Merge branch 'release/0.9.6' into develop 2014-04-24 13:09:51 +01:00
Antony Male af3b0935dd Bump version 2014-04-24 13:09:33 +01:00
Antony Male 0aa559cd82 Update changelog 2014-04-24 13:09:11 +01:00