Antony Male
f7ec7a255a
WIP towards getting unit tests working
2019-09-22 17:12:53 +01:00
Antony Male
d32045b518
Allow the owner of a dialog/window to be explicitly set
...
Fixes #36
2018-09-30 18:29:10 +01:00
Antony Male
ffb218d666
Add default FlowDirection and TextAlignment to MessageBoxViweModel
...
This removes the MessageBoxOptions input to MessageBoxViewModel, and
replaces it with explicit FlowDirection and TextAlignment inputs.
I think this is fair enough - we weren't using most of the members
of MessageBoxOptions, so allowing them to be provided was misleading.
Fixes #12
2016-11-12 11:35:58 +00:00
Antony Male
fc7f164c53
Remove unnecessary usings in unit tests
2015-09-23 21:46:36 +01:00
Antony Male
786438dc50
Fix unit test which could crash
...
We were trying to close a window on a non-STA thread after the test had
finished executing, which was evil.
Threading is hard.
2015-09-09 12:43:26 +01:00
Antony Male
8479672028
Remove dependency on Application.Current from WindowManager
...
This means that the WindowManager is entirely self-sufficient, and does
not rely on anything static
2015-03-30 15:02:07 +01:00
Antony Male
e222af3c84
Throw if the user tries to show a Window using s:View.Model
...
Fixes #5
2015-03-24 09:23:35 +00:00
Antony Male
2a6350ad73
WindowManager sets window title if it's the same as the window name
2015-02-28 17:57:29 +00:00
Antony Male
d2efcf48cb
WindowManager avoids creating a new View if ViewModel already has a View attached
2015-02-22 16:47:34 +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
46dc485eee
Add tests for new conductor Dispose behaviour
2015-01-15 09:54:05 +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
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
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
5596ba272d
Conductors will also Dispose their children if the're IDisposable
2014-08-04 17:35:16 +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
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
6b2c8d9583
Fix WindowManager tests
2014-05-13 17:57:15 +01:00
Antony Male
fc4a7fb61c
Push coverage up to 99.7%
2014-05-10 20:11:02 +01:00
Antony Male
0d3538c932
Document ViewManager a bit
2014-04-10 13:14:17 +01:00
Antony Male
8106e6a3ac
Start on unit testing WindowManager, but there's not a lot I can do since Window is so hard to mock
2014-04-03 12:57:42 +01:00