Commit Graph

126 Commits

Author SHA1 Message Date
Antony Male 3efd74609d PerChildContainer registrations request themselves using the service type (oops) 2014-09-12 16:39:16 +01:00
Antony Male 142fb40ed9 GetAll returns empty enumerable if no registrations found 2014-09-12 16:38:57 +01:00
Antony Male 5f77356584 Disable some binding checks for factories and instances 2014-09-12 14:04:46 +01:00
Antony Male 05f509fd47 Add ability to register instances 2014-09-12 13:11:39 +01:00
Antony Male bc05f57b79 Mostly new docs 2014-09-12 10:20:15 +01:00
Antony Male 5fd04a410e Split the builder up into separate files, and move a couple of things out to extension methods 2014-09-12 09:50:23 +01:00
Antony Male f9a16df8be Revamp the fluent interface for IStyletIoCBuilder to make weak bindings better 2014-09-11 17:58:41 +01:00
Antony Male d69507b7be Split up all of the files with multiple classes, in StyletIoC 2014-09-11 13:18:33 +01:00
Antony Male 3887d38a4a Little bit of work on the unit test coverage 2014-09-11 12:46:59 +01:00
Antony Male ad8ba84ee8 First attempt at func factories. Passes almost all tests 2014-09-10 21:14:38 +01:00
Antony Male 8f180c235f Rename ChildContainerScope to PerContainerScope 2014-09-10 14:07:00 +01:00
Antony Male 0222106c4e Fix up a couple of bugs 2014-09-10 13:54:26 +01:00
Antony Male 37289a2b83 Get InChildContainerScope working - first time! 2014-09-10 13:21:19 +01:00
Antony Male 816df04f18 Add singleton disposing 2014-09-10 12:59:54 +01:00
Antony Male 3246f5db29 Add some unit tests 2014-09-10 12:49:28 +01:00
Antony Male ac58ef8bde Allow StyletIoC to accept other scopes 2014-08-27 19:15:21 +01:00
Antony Male ea2a45e17d Remove failing tests, which can't be fixed 2014-08-27 18:57:53 +01:00
Antony Male 5596ba272d Conductors will also Dispose their children if the're IDisposable 2014-08-04 17:35:16 +01:00
Antony Male 25e025f542 Fix warning in unit tests 2014-08-04 07:59:44 +01:00
Antony Male 9532f3eca1 Change capitalisation of ValidationModeBase.AutoValidate 2014-08-02 17:54:15 +01:00
Antony Male db08349c02 Add unit tests for ApplicationLoader, and fix Bootstrapper tests 2014-08-02 17:50:18 +01:00
Antony Male bc9362eeee Change DebugLogger to TraceLogger, which logs even in Release builds 2014-07-30 15:22:29 +01:00
Antony Male 14f1c4a4d5 Rename StyletLogManager -> LogManager and IStyletLogger -> ILogger, but put in Logger namespace 2014-07-27 18:21:14 +01:00
Antony Male 7952d15e83 Rename ILogger and LogManager to not conflict with NLog 2014-07-26 18:17:49 +01:00
Antony Male 642a038488 Add Execute.PostToUIThreadAsync 2014-07-26 11:51:46 +01:00
Antony Male 4ed753e89e Bring unit test code coverage back to par 2014-07-25 13:11:51 +01:00
Antony Male 60aca05dd2 Simplify IViewManager, by aligning it to what someone actually wants the ViewManager to do 2014-07-24 16:39:26 +01:00
Antony Male 3e4e09a598 Prevent double closure of a Screen 2014-07-24 09:45:20 +01:00
Antony Male b254f92fe8 Add OnStart hook for when Stylet starts up, and rename the existing hooks to avoid confusion 2014-07-23 13:24:12 +01:00
Antony Male 092cf02599 Fix bug in BoolToVisibilityConverter, causing exception with some argument types 2014-07-21 11:20:29 +01:00
Antony Male 58d5a6e55e Change the handler type for Bind and BindWeak, to include the sender and property name 2014-06-22 17:22:24 +01:00
Antony Male c18563267f Remove the WeakEventManager, as it was too complex
It's replaced with a BindWeak extension method, similar to the existing
Bind. This rejects delegates with compiler-generated targets
2014-06-22 16:41:52 +01:00
Antony Male 6f63c5cc2d Add channels to the EventAggregator 2014-06-17 17:44:35 +01:00
Antony Male ad4aa28b64 Extend BoolToVisibilityConverter to handle more types 2014-06-07 13:50:38 +01:00
Antony Male 17d280a898 Rename LambdaComparer to LambdaEqualityComparer, and create actual LambdaComparer 2014-06-06 13:14:20 +01:00
Antony Male eeeb761e0d ViewManager methods should have been protected... 2014-05-26 19:13:08 +01:00
Antony Male a914d58668 Refactor the ViewManager, splitting out a few methods to make it easier to customize 2014-05-26 18:54:55 +01:00
Antony Male 6d72e2d525 MessageBox supports MessageBoxOptions 2014-05-23 13:03:21 +01:00
Antony Male 0ba6061e59 Move BootstrapperBase's autoLaunch to Start 2014-05-21 12:22:13 +01:00
Antony Male ac7c504d94 Write tests for the updated BoolToVisibilityConverter 2014-05-21 12:04:19 +01:00
Antony Male a2aa1e43b7 Allow MessageBox users to override text on individual buttons on a per-case basis 2014-05-21 11:48:48 +01:00
Antony Male 99f79d1e29 Add more unit tests for MessageBox, and convert to use more system types 2014-05-20 21:24:29 +01:00
Antony Male 2093d9c3cb Start writing unit tests for the MessageBox stuff 2014-05-20 21:24:28 +01:00
Antony Male 5823437a28 Support design-time application running 2014-05-16 09:46:16 +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 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 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