Commit Graph

10 Commits

Author SHA1 Message Date
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 b11a9dabff Make the MessageBox display properly with multi-line content 2015-02-28 13:25:35 +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 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 6d72e2d525 MessageBox supports MessageBoxOptions 2014-05-23 13:03:21 +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