Commit Graph

766 Commits

Author SHA1 Message Date
Antony Male 26d905c6f0 Explicitly target net5.0-windows
Things worked when referenced from a net5.0-windows project anyway, but might as
well keep with the times
2020-11-28 12:18:14 +00:00
taks 60347965b9 Throw a better-worded AmbiguousMatchException from ActionBase 2020-10-22 21:35:53 +01:00
Antony Male 4ada75c4d8 Upgrade template to netcoreapp3.1 2020-10-22 21:35:53 +01:00
Antony Male 021e3ee51c Fix namespaces in Stylet.Templates. Again. 2020-10-21 20:53:43 +01:00
Antony Male 5db234f950 Move to snupkg for symbols, and ditch SourceLink 2020-09-19 23:12:49 +01:00
Antony Male 97c0a29c5d Merge branch 'release/1.3.4' into develop 2020-07-26 19:21:58 +01:00
Antony Male eedf9360ca Update changelog 2020-07-26 19:21:20 +01:00
T.M 6bc5f646f1 ConductorBaseWithActiveItem sets new item as ActiveItem before activating it
Up to now, ScreenExtemsions.TryActivate(newItem) was called
before Conductor.ActiveItem was set to the new item. This commit moves
setting ActiveItem to before TryActivate(newItem) call. This allows for
nested activation - that is, a scenario where newItem can "intercept"
its activation and force parent Conductor to immediately activate
another item inside its OnActivate() override, effectively skipping
newItem without displaying it.

Fixes #140
2020-07-26 19:11:52 +01:00
Antony Male d4b4fc2ee5 Merge branch 'release/1.3.3' into develop 2020-06-20 12:14:02 +01:00
Antony Male 763f8a6860 Update changelog 2020-06-20 12:13:31 +01:00
Antony Male f5b72703c2 Fix bug in EventAggregator
Publishing to multiple channels would only deliver messages to
subscribers subcribed to all of those channels, not any of them.

Fixes #127
2020-06-20 12:05:18 +01:00
Antony Male 529cd140ee Ensure that exceptions from ActiveItem are rethrown
Conductor<T>.Collections.OneActive has its ActiveItem set from a binding
in most cases. However, bindings swallow exceptions encountered when
setting the source. This means that the user switched to a new
ViewModel, and its OnActivate/OnInitialActivate method threw an
exception (or the OnDeactivate method of the ViewModel being switched
away from threw an exception), this exception would be swallowed by the
binding.

Work around this by introducing RethrowingBinding, which explicitly
rethrows any exceptions encountered when setting the source on the
dispatcher. Use this for the ActiveItem binding on
StyletConductorTabControl.

Fixes #133
2020-06-20 11:53:50 +01:00
Antony Male c6224952ec Merge branch 'release/1.3.2' into develop 2020-04-23 18:03:42 +01:00
Antony Male 3269d26804 Update changelog 2020-04-23 18:03:28 +01:00
Antony Male 9f7b596a5e Throw a better exception than an NRE if they forget to call builder.Bind(..).To(..)
Fixes #114
2020-04-23 17:58:28 +01:00
Antony Male bc068f8b27 Make namespace of StyletIoC unit tests consistent 2020-04-23 17:52:45 +01:00
Antony Male 9fefbf1687 Expose extra methods on IWindowManager
Fixes #113
2020-04-23 17:52:45 +01:00
Antony Male f946b8b9ac Support building abstract factories for two interfaces with the same name
Fixes #123
2020-04-23 17:52:45 +01:00
Antony Male 2b80db4db7 Fix default namespace in .NET Core project template
Fixes #79
2020-03-12 21:25:22 +00:00
Antony Male 1ef62f568d Merge branch 'release/1.3.1' into develop 2020-02-04 21:34:43 +00:00
Antony Male b1e05da0c0 Update changelog 2020-02-04 21:34:35 +00:00
Antony Male 24ab49208f Fix suspected race condition in SingletonRegistration
This could trigger if the first two requests for a singleton were on
different threads, and executed veyr close together
2020-02-04 21:27:49 +00:00
Antony Male 4fa7b9ca1a Fix typo in README 2019-09-26 12:28:41 +01:00
Antony Male 84dc301d1a Merge branch 'release/1.3.0' into develop 2019-09-26 12:10:58 +01:00
Antony Male c3f7f7c080 Update changelog 2019-09-26 12:10:14 +01:00
Antony Male a4428f6436 Tweak nuspcs and README 2019-09-25 12:36:16 +01:00
Antony Male 385452170f Embed the PDB, see if that improves things 2019-09-24 16:28:57 +01:00
Antony Male 5c2e921a50 ViewManager should be singleton
Fixes #71
2019-09-24 14:54:19 +01:00
Antony Male d6c2f8e7df Add a .NET Core template 2019-09-24 14:51:33 +01:00
Antony Male 2b3294e5ed Merge branch 'feature/netcore' into develop
* feature/netcore:
  Update the README
  More attempts to get sourcelink working
  Actually, seems that the SourceLink advice is *not* to create a snupkg
  Change how the nupkg is generated; integrate sourcelink
  Fix up the Rakefile
  Fix up the failing unit tests
  Turns out it is possible to have a single csproj targetting both core and framework
  Move Framework projects over to SDK-style using https://github.com/onovotny/MSBuildSdkExtras
  WIP towards getting unit tests working
  Split Stylet and IntegrationTests projects into Framework and Core
2019-09-22 17:13:48 +01:00
Antony Male a22dd2b3dd Update the README 2019-09-22 17:12:55 +01:00
Antony Male c17c50d782 More attempts to get sourcelink working 2019-09-22 17:12:55 +01:00
Antony Male ca0a840b66 Actually, seems that the SourceLink advice is *not* to create a snupkg 2019-09-22 17:12:54 +01:00
Antony Male 882d231db2 Change how the nupkg is generated; integrate sourcelink 2019-09-22 17:12:54 +01:00
Antony Male 9b5da1f82e Fix up the Rakefile
We no longer generate test code coverage, as that's hard on .net core

Also remove GitLink
2019-09-22 17:12:54 +01:00
Antony Male b3064171c1 Fix up the failing unit tests 2019-09-22 17:12:54 +01:00
Antony Male 3c7639bdc8 Turns out it is possible to have a single csproj targetting both core and framework
<EnableDefaultItems>false</EnableDefaultItems> along with
<Compile Include="**\*.cs" Exclude="obj\**" /> and <None Remove="**\*.cs" />
is needed, though.
2019-09-22 17:12:54 +01:00
Antony Male 5184df214d Move Framework projects over to SDK-style using https://github.com/onovotny/MSBuildSdkExtras 2019-09-22 17:12:53 +01:00
Antony Male f7ec7a255a WIP towards getting unit tests working 2019-09-22 17:12:53 +01:00
Antony Male f4e6e3ecf5 Split Stylet and IntegrationTests projects into Framework and Core
Annoyingly we need to have two separate projects in two separate directories,
since Framework WPF projects aren't supported in sdk-style csprojs. The
Framework and Core projects also stamp over each others' bin and obj
directories, even if you set IntermediateFilePath, hence the need to put
them in entirely separate places
2019-09-22 17:12:53 +01:00
Antony Male 392e06a44a Merge branch 'release/1.2.0' into develop
* release/1.2.0:
  Update changelog
2019-05-28 20:17:38 +01:00
Antony Male 1877faae2b Update changelog 2019-05-28 20:15:34 +01:00
Antony Male f74f5c745d Update NuGet packages to fix Fody breakage in newer VS versions
Fixes #61
2019-01-10 12:33:05 +00:00
Antony Male 24ad06ada2 Add XmlnsPrefix attribute
Fixes #57
2018-12-18 12:40:29 +00:00
Antony Male bc9578e8ea Update the FluentModelValidator in Samples 2018-11-23 12:50:51 +00:00
Antony Male aae13a8193 Fix disposal in NoIoCContainerBootstrapper
Fixes #42
2018-09-30 18:57:32 +01:00
Antony Male 8183c83190 Add BindAndInvoke
Fixes #43
2018-09-30 18:50:55 +01:00
Antony Male eb2da81b9d Deprecate BindWeak
Weak event subscriptions are basically impossible to get right, if
you allow anonymous delegates.

Fixes #38
2018-09-30 18:43:31 +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 93dbfd1482 Make Master/Detail sample not rely on WPF magic
Fixes #33
2018-09-30 18:12:35 +01:00