Commit Graph

433 Commits

Author SHA1 Message Date
Antony Male 9ee23f1469 Remove Execute.TestExecuteSynchronously, in favour of a synchronous IDispatcher implementation 2015-01-04 13:10:37 +00:00
Antony Male 9765f6c3fe Fix up BindableCollection collection dispatcher, and add tests 2015-01-04 12:37:33 +00:00
Antony Male 2ed54c4acd Refactor BootstrapperBase slightly, to call OnStartup at a better point in time 2015-01-04 12:28:02 +00:00
Antony Male 6d72032f8c Allow IModelValidator to return IEnumerable<string> rather than string[]
Closes #1
2014-12-26 22:55:41 +00:00
Antony Male 875586f32a Merge branch 'release/1.0.3' into develop 2014-12-11 16:58:32 +00:00
Antony Male c0add88302 Bump version 2014-12-11 16:58:22 +00:00
Antony Male 9bc2950fee Update changelog 2014-12-11 16:57:44 +00:00
Antony Male 4a2c345bec Have different default PropertyChanged and CollectionChanged despatchers
This is because PropertyChanged events can be async - WPF handles the
marshalling. However if CollectionChanged events are async, then the
thing listening to the event can still be iterating the collection while
the user's editing it, leading to irritating little exceptions
2014-12-05 10:59:22 +00:00
Antony Male 94d4a31b85 Be draconian about using readonly where appropriate 2014-12-04 17:06:12 +00:00
Antony Male 91eab0958f Stop marking exceptions as Serializable - it's not needed 2014-12-04 13:34:20 +00:00
Antony Male a48eda896f Remove LambdaComparer and LambdaEqualityComparer - they have no business in an MVVM framework 2014-12-04 13:29:08 +00:00
Antony Male 46672cb0b9 Merge branch 'release/1.0.2' into develop 2014-12-02 17:41:57 +00:00
Antony Male 9702fcf70b Bump version 2014-12-02 17:39:46 +00:00
Antony Male 08636798db Update changelog 2014-12-02 17:38:39 +00:00
Antony Male 509d428dc8 Move back to lots of separate arguments for ShowMessageBox - consistent with MessageBox.Show 2014-12-02 16:16:32 +00:00
Antony Male f47db1cbec Change some Bootstrapper methods to public, to avoid explicit interface implementation 2014-12-02 15:20:16 +00:00
Antony Male 743961ec68 ViewManager now accepts an IViewManagerConfig, which makes the IoC container setup neater 2014-12-02 12:52:58 +00:00
Antony Male 77c6d347a5 Add overridable CanClose() method to Screen - meaning they don't have to use Tasks 2014-12-02 12:13:26 +00:00
Antony Male e29e3bf061 Merge branch 'release/1.0.1' into develop 2014-12-01 12:49:21 +00:00
Antony Male 6833631165 Bump version 2014-12-01 12:44:50 +00:00
Antony Male 1dffbb9ea2 Update changelog 2014-12-01 12:44:26 +00:00
Antony Male 6f573b90ea Remove GlobalSuppressions and prefer pre-item attributes 2014-12-01 12:40:48 +00:00
Antony Male a5fb3c4c92 Fix samples 2014-12-01 12:38:40 +00:00
Antony Male d857d7d6fd Move Bootstrappers into its proper place 2014-12-01 12:37:23 +00:00
Antony Male 9a29037dc6 Add bootstrappers for Castle Windsor, StructureMap, and Unity 2014-11-30 20:22:03 +00:00
Antony Male 954ee6c436 Rename MessageBox.cs -> MessageBoxViewModel.cs, as that's now all it contains 2014-11-30 15:57:51 +00:00
Antony Male c849b1b027 Add Bootstrappers solution, with Ninject and Autofac bootstrappers and tests 2014-11-30 15:57:08 +00:00
Antony Male a421fc6922 Remove AssemblySource, relying instead on a List<Assembly> on BootstrapperBase 2014-11-30 15:19:13 +00:00
Antony Male 0f93eb1832 Remove the IoC class in its entirety - it's not needed any more, and it's a bad idea 2014-11-30 14:23:56 +00:00
Antony Male 45dbcc2d30 Move IContainer's extension methods onto IContainer
This means people with an IContainer, but who haven't included StyletIoC,
don't get confused
2014-11-30 14:16:30 +00:00
Antony Male e36179098e ViewManager no longer depends on IoC 2014-11-30 14:05:08 +00:00
Antony Male 254e2f8a9b Remove unnecessary Bootstrapper constructor 2014-11-30 13:53:31 +00:00
Antony Male 83557fa29b Move ShowMessageBox onto the IWindowManager
Having it as an extension method is good architecturally, but make it harder
to change its behaviour. This way, users can override it easily if they wish.

This also means that the WindowManager does not depend on the IoC service
locator, insteady accepting a Func<IMessageBoxViewModel>
2014-11-29 20:50:21 +00:00
Antony Male aa129f54cd StyletIoC: Speed up GetAll calls slightly 2014-11-29 18:23:01 +00:00
Antony Male 788c50de47 PropertyChangedBase: don't fire the event if someone unsubscribed while we were dispatching 2014-11-29 18:14:18 +00:00
Antony Male b5ec9cffb8 BindableCollection: don't dispatch to the UI thread if there are no subscribers 2014-11-29 18:11:41 +00:00
Antony Male 87c248baa3 Fix a comment 2014-11-29 18:11:21 +00:00
Antony Male bcb821bcbd Stylistic changes 2014-11-29 18:11:13 +00:00
Antony Male 22066de5c8 Merge branch 'release/1.0.0' into develop 2014-11-27 11:17:41 +00:00
Antony Male 6253c4ad88 Bump version 2014-11-27 11:07:26 +00:00
Antony Male ebacf1ec71 Update changelog 2014-11-27 11:06:38 +00:00
Antony Male 17a3799811 Push unit test coverage up to 99.6% 2014-11-27 11:06:12 +00:00
Antony Male fc5958c537 Minor tweaks to the examples 2014-11-27 10:40:28 +00:00
Antony Male 4f036c01ee Update nuget 2014-11-27 10:32:44 +00:00
Antony Male 6933a121fa Remove extension methods from StyletIoC interfaces
While it's strictly better design, it does require people to import the
StyletIoC namespace - which they don't have to do, particularly if they're
writing a bootstrapper and letting VS set the builer's argument type
to StyletIoC.IStyletIoCBuilder
2014-11-27 10:32:36 +00:00
Antony Male 3090db08bf Remove more child container stuff 2014-10-22 20:40:56 +01:00
Antony Male 44a6fa67f4 Get rid of funcs with key. Keep those without a key 2014-10-22 20:35:02 +01:00
Antony Male d6452c6517 Strip out child container stuff
I've forked the IoC container to SlimIoC, so this is going to be simplified a bit
2014-10-22 20:33:47 +01:00
Antony Male 72dfc2ae1b Fire property/collection changed events synchronously, so the UI thread doesn't read them while they're still being manipulated 2014-09-29 18:57:15 +01:00
Antony Male be22da44d0 Add Modules to StyletIoC 2014-09-14 12:19:48 +01:00