Commit Graph

601 Commits

Author SHA1 Message Date
Antony Male 91b925a458 Add AddModule and AddModules to IStyletIoCBuilder (oops) 2015-02-07 13:02:21 +00:00
Antony Male 68a826e66f WindowManager does not set Title binding if Title has a value already 2015-01-20 10:24:12 +00:00
Antony Male 64e83c526b Set WindowStartupLocation appropriately if the user hasn't set it themselves 2015-01-20 10:18:25 +00:00
Antony Male 4468740338 Implement proper state management in Screen
This takes the old flag-based state management in Screen, and replaces it
with one based on a ScreenState enum. This also gives a way for
interested parties to query the current state, and for an event which
notifies of any state transition.

This meant combining IActivate, IDeactivate, and IClose. This is a sensible
move: these interfaces were inextricably linked anyway, and separating
them had no advantages and a few disadvantages. If external parties are
using these interfaces directly, then migration is necessary, but these
are usually only used by Conductors
2015-01-19 13:08:10 +00:00
Antony Male 768509cacc Actually add new Logger files to project 2015-01-19 12:08:22 +00:00
Antony Male e2dc463d01 Sort logging classes into different files 2015-01-18 22:15:05 +00:00
Antony Male 2481cec3fa Shuffle where hooks are called from in BootstrapperBase slightly 2015-01-18 22:11:21 +00:00
Antony Male 3785fbf2af Add test to ensure guard method is propagated 2015-01-18 22:05:59 +00:00
Antony Male b3601e6f81 Actions throw on execute of ActionTarget hasn't changed from the default 2015-01-18 22:02:06 +00:00
Antony Male 3efcb250cf Merge branch 'release/1.0.7' into develop 2015-01-15 12:45:25 +00:00
Antony Male 81a1c66bbf Bump version 2015-01-15 12:45:03 +00:00
Antony Male 45152d09db Update changelog 2015-01-15 12:43:06 +00:00
Antony Male 1fd12fd54b Keep ReSharper happy 2015-01-15 10:35:27 +00:00
Antony Male 3418fda5a2 Handle null/empty property name in ValidatingModelBase.ValidatePropertyAsync
In this case, we call ValidateAllProperties instead
2015-01-15 10:12:37 +00:00
Antony Male 07160aa4fe Make BootstrapperBase non-generic
Instead, it has an abstract RootViewModel property, which bootstrapper
overrides to return an instance of TRootViewModel from the container.

This means that the root ViewModel is treated a singleton by the bootstrapper,
regardless of whether it's singleton in the container
2015-01-15 10:06:00 +00:00
Antony Male 46dc485eee Add tests for new conductor Dispose behaviour 2015-01-15 09:54:05 +00:00
Antony Male c0562205de If a conductor receives a new ActiveItem, and it's not active, it will deactivate that item
This is needed because the item being activated might actually be in the
closed state, and we'll need to bring it into the deactive state
2015-01-15 09:33:09 +00:00
Antony Male 20c708ddbe Conductor optionally disposes children, and WindowConductor never does 2015-01-15 09:28:24 +00:00
Antony Male dca24b4d5e Get unit test coverage back up 2015-01-14 20:30:51 +00:00
Antony Male ee88316479 Move CreateViewForModel and BindViewToModel onto IViewManager 2015-01-14 20:27:01 +00:00
Antony Male b4b24441aa Rename TryClose to RequestClose, and put in IRequestClose 2015-01-14 20:25:01 +00:00
Antony Male be88aed936 Merge branch 'release/1.0.6' into develop 2015-01-14 15:28:38 +00:00
Antony Male 395d0c9d76 Bump version 2015-01-14 15:28:09 +00:00
Antony Male 627b62d599 Update changelog 2015-01-14 15:28:08 +00:00
Antony Male 06b1d6f632 Improve coverage 2015-01-14 15:27:57 +00:00
Antony Male 66e6f9a925 Squash 'unused' warning in unit tests 2015-01-14 15:10:59 +00:00
Antony Male 9bdf9d15b3 Align style with ReSharper 2015-01-14 15:08:43 +00:00
Antony Male c777d295af ActionExtension: Handle attached events 2015-01-14 13:39:09 +00:00
Antony Male f7a7654984 Merge branch 'release/1.0.5' into develop 2015-01-14 12:25:06 +00:00
Antony Male 79ba687fca Bump version 2015-01-14 12:24:33 +00:00
Antony Male 69482188b4 Update changelog 2015-01-14 12:23:50 +00:00
Antony Male 5e40db124d Update bootstrappers to dispose their containers 2015-01-14 12:23:43 +00:00
Antony Male e119386335 Make ReSharper happy 2015-01-14 12:16:11 +00:00
Antony Male 185c49ad3d Improve bootstapper's container disposing 2015-01-14 10:21:04 +00:00
Antony Male a3d15cd958 Unwrap TargetInvocationException for EventAction 2015-01-14 10:10:49 +00:00
Antony Male 49f851e384 Accent any (reasonable) event signature for EventAction, not just RoutedEventHandler 2015-01-14 09:59:36 +00:00
Antony Male 68a60b0aee CommandAction unwraps TargetInvocationException, preserving stack trace 2015-01-14 08:30:08 +00:00
Antony Male 407a646fdc Dispose the container on exit 2015-01-12 13:15:10 +00:00
Antony Male 0b8c22fc08 Fix Resharper warnings, and downgrade unnecessary ones to Hint 2015-01-12 10:24:26 +00:00
Antony Male fd69a61ed5 Add workaround to error showing dialog when main window closed 2015-01-10 17:13:59 +00:00
Antony Male 9e9355ffe0 Add StyleCop support
Most of the violations were documentation changes
2015-01-10 14:22:28 +00:00
Antony Male 487c288bd3 Stop View from being instantiated 2015-01-09 11:08:00 +00:00
Antony Male 6311176648 Avoid access exception when updating CanExecuteChanged from a non-UI thread 2015-01-07 21:24:28 +00:00
Antony Male 611474c014 Catch exception when application closed 2015-01-07 20:58:12 +00:00
Antony Male c9d6fd0bb3 Make Bootstrapper.Container a property 2015-01-07 20:22:56 +00:00
Antony Male 234cc60933 Merge branch 'release/1.0.4' into develop 2015-01-07 12:50:12 +00:00
Antony Male 7081b08d5d Bump version 2015-01-07 12:47:11 +00:00
Antony Male 87ef7d3539 Update changelog 2015-01-07 12:46:43 +00:00
Antony Male 445861ee53 Standardise on whether we allow inherit on InjectAttribute 2015-01-07 12:42:48 +00:00
Antony Male 37bf6e7084 Merge branch 'feature/collection-changing' into develop 2015-01-06 14:06:56 +00:00