Commit Graph

766 Commits

Author SHA1 Message Date
Felipe Martínez 1a6e5c26e0 Fix typo 2018-09-30 18:06:13 +01:00
Antony Male 4da2d39999 Stylet.Start should create files as UTF-8 with BOM
It looks like VS uses UTF-8, not UTF-16, and UTF-16 really doesn't
play well with git (which thinks they're binary)
2018-09-30 18:04:43 +01:00
Antony Male 2027fad730 Add support for CommandBinding in Actions
CommandBinding isn't a DependencyObject, so we can't get its DataContext
or View.ActionTarget -- we can only use the
IRootObjectProvider.RootObject. This should be good enough for most cases,
as these tend to get installed at the root of a window.

Fixes #50
2018-09-30 17:56:51 +01:00
Antony Male 61fcf4617c Merge branch 'release/1.1.22' into develop 2018-09-05 12:10:26 +01:00
Antony Male d4b5f77a1a Update changelog 2018-09-05 12:06:09 +01:00
Antony Male 132f550124 Allow custom MessageBoxViews to be used
I broke this a while back when removing Stylet's assembly from the IoC
container.

Fixes #34
2017-06-25 13:24:53 +01:00
Antony Male c99a826cf9 Merge branch 'release/1.1.21' into develop 2017-06-12 13:00:53 +01:00
Antony Male eef86cc893 Update changelog 2017-06-12 13:00:06 +01:00
Antony Male 272b408bc6 Don't try and uninstall Stylet.Start in install.ps1
VS2015 now throws an error (it thinks Stylet.Start doesn't exist), and VS2017
deadlocks. Neither is a great outcome.

The best we can do is to ask the user to uninstall Stylet.Start

Fixes #32
2017-06-12 12:57:54 +01:00
Antony Male 95ec850fce Don't override window's StartupLocation if Top or Left are bound
We checked to see whether Top or Left were set, but not if they had a
DataBinding. This meant you couldn't explicitly set the location through
a binding.

Fixes #31
2017-06-12 12:35:25 +01:00
Antony Male b7e79f5f6c Stylet.Start should save files in UTF-16 with BOM
This is the encoding which VS uses, so let's be consistent. We were
previously saving as UTF-8 without a BOM, which VS seemed to be interpreting
as ASCII, and was throwing a wobbly if non-ASCII characters were later
added.

Fixes #30
2017-06-05 13:02:41 +01:00
Antony Male 41527ff7e9 Merge branch 'release/1.1.20' into develop
* release/1.1.20:
  Update changelog
2017-05-20 17:56:23 +01:00
Antony Male 840aa34ffa Update changelog 2017-05-20 17:55:38 +01:00
Antony Male e01e6e41f3 If a ConductorOneActive item is closed, don't dispose it twice
Fixes #28
2017-05-18 10:09:21 +01:00
Antony Male e4941c1c66 When removing ConductorOneActive's ActiveItem, don't Close then Deactivate
Closing and then Deactivating causes the ActiveItem to be reactivated, in order
to deactivate it. Not good.

Fixes #27
2017-05-15 13:04:44 +01:00
Antony Male 2c2466e611 Rename FuncNoKeyRegistration, since there is no FuncWithKeyRegistration any more 2017-04-05 12:22:05 +01:00
Antony Male ea39d499f8 Merge branch 'release/1.1.19' into develop
* release/1.1.19:
  Update changelog
2016-12-03 13:23:07 +00:00
Antony Male a480c484e7 Update changelog 2016-12-03 13:22:32 +00:00
Antony Male 151371f9f6 Conductor.OneActive should close children removed with items.Clear()
Conductor.AllActive reacts appropriately to the Reset event on its items
collection. Conductor.OneActive doesn't, and should.

Fixes #18
2016-12-03 13:15:14 +00:00
Antony Male f100a130d8 Merge branch 'release/1.1.18' into develop 2016-11-25 17:21:52 +00:00
Antony Male 7403f0235a Update changelog 2016-11-25 17:21:32 +00:00
Antony Male f2a61493e3 Add a method to ValidatingModelBase allowing someone to clear all errors
Relates to #17
2016-11-25 17:12:43 +00:00
Antony Male 9e9514a795 Ensure that other IoC containers don't dispose things multiple times
Fixes #16
2016-11-25 17:05:06 +00:00
Antony Male 3fd89871b3 Conductor: copy items before calling into them
As a result of being activated/deactivated/closed, a child of a conductor
might do something which results in the conductor changing its items
collection. Therefore make sure that this collection is copied before
calling into the children while iterating.

Fixes #13
2016-11-17 20:44:39 +00:00
Antony Male eedd886e3e Remove usage of expression-based NotifyOfPropertyChange in library code
Using a string is faster. When I (finally) bring this project up to C# 6, I'll move to nameof
2016-11-17 13:03:12 +00:00
Antony Male 97567f9cc2 If a Screen is deactivated from closed, make sure it's activated again
Relates to #14
2016-11-17 12:50:08 +00:00
Antony Male 5a5cfc5cfb Fix ConductorOneActive to not deactivate activate item twice when closing
It closed each of its children individually, then cleared 'this.items',
which caused of all its children to be deactivated again,.

Fixes #14
2016-11-17 12:50:08 +00:00
Antony Male 135d6cb0af Merge branch 'release/1.1.17' into develop
* release/1.1.17:
  Update changelog
2016-11-13 17:17:09 +00:00
Antony Male 35a68b3fde Update changelog 2016-11-13 17:16:39 +00: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 6dd8c072c1 StyletIoC: Detect basic copy constructors, and don't attempt to call them
This doesn't do full recursion detection, but catches the simple case of
copy constructors.
2016-10-09 11:30:11 +01:00
Antony Male e538bbbd8f Dispose Instance bindings by default, but allow this to be configured 2016-09-23 11:20:55 +01:00
Antony Male bc29dda5b7 Merge branch 'release/1.1.16' into develop 2016-08-26 11:48:34 +01:00
Antony Male b92b9943f6 Update CHANGELOG 2016-08-26 11:46:48 +01:00
Antony Male 8ea889d749 Add ValidatingModelBase.RecordPropertyError
This can be used to manually change the state of properties, without using
the IModelValidator stuff. This handles more niche use-cases which don't
fit the pattern established by the IModelValidator.
2016-08-26 11:44:39 +01:00
Antony Male 4532a9859d Properly use try/finally for releasing locks in ValidatingModelBase 2016-08-26 11:44:38 +01:00
Antony Male 7da6f8a363 Make ValidatingModelBase.HasErrors virtual
It really should have been....
2016-08-26 11:44:37 +01:00
Antony Male 3916c825ae Deprecate Screen.State, in favour of Screen.ScreenState
It's confusing to have a property called 'State'
2016-08-26 11:44:35 +01:00
Antony Male 6cd4546a80 Deprecate CanClose
There's no nice way to make it work alongside CanCloseAsync when you're
in a conductor hierarchy. There will always be difference between how
CanClose and CanCloseAsync behave when there are children which need
to be interrogated as well, and that's confusing.
2016-08-26 11:44:34 +01:00
Antony Male 35c1b3320f Fix the ValidatingModelBase, in the face of WPF asking for model-wide errors
Fixes #11
2016-08-26 11:27:37 +01:00
Antony Male b6b9811ab0 Conductors, which override CanCloseAsync, must call CanClose
Otherwise subclasses which override CanClose but not CanCloseAsync won't
work as expected.

Fixes #10
2016-07-09 12:50:51 +01:00
Antony Male 3286bf087e Fix up the Bootstrappers project 2016-07-09 12:21:02 +01:00
Antony Male 10c8fa4f3a Move to automatic nuget package restore 2016-07-09 12:15:32 +01:00
Antony Male b48487635c SetAndNotify returns a value indicating whether it raised a notification 2016-05-12 09:16:21 +01:00
Matthias Cavigelli ef42d147cb Fixed link to caliburn micro project 2016-05-10 22:04:31 +02:00
Antony Male 314a846701 Merge branch 'release/1.1.15' into develop 2016-04-05 12:32:22 +01:00
Antony Male a46c114686 Update changelog 2016-04-05 12:31:56 +01:00
Antony Male dfeda45ca5 Merge branch 'feature/stylet-start' into develop 2016-04-05 12:30:51 +01:00
Antony Male fbbee51aef Recreate App.xaml if NuGet removed it 2016-04-05 10:26:00 +01:00
Antony Male 623dcd6aca Handle MainWindow which isn't a Window (??), and nonexistent MainWindow.xaml.cs 2016-04-05 09:13:12 +01:00