Antony Male
7f14d29696
Merge branch 'release/1.1.7' into develop
2015-09-09 12:48:49 +01:00
Antony Male
4114e1cf92
Bump version
2015-09-09 12:48:29 +01:00
Antony Male
3df0beaa23
Update changelog
2015-09-09 12:48:21 +01:00
Antony Male
44cff93967
Update NuGet packages
2015-09-09 12:43:31 +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
0bf916691f
Change my mind on whether Deactivated can be entered before Active
...
It was getting too convoluted: if something sets the state, the Screen should
enter that state
2015-09-09 12:27:21 +01:00
Antony Male
fc1198dae6
Add version task
2015-09-08 22:10:11 +01:00
Antony Male
a90f1d3c2f
Add ruleset
2015-09-08 22:04:12 +01:00
Antony Male
c1b842342b
Add NUnit VS test runner NuGet package
2015-09-08 22:03:33 +01:00
Antony Male
11d91e7323
Fix brace style
2015-09-08 22:03:19 +01:00
Antony Male
af5d2f0273
Do not allow Initial -> Deactivated transition
...
This caused a regression when screen states were added. Childre of
conductors are deactivated initially, then activated when the parent is
activated. This caused the Initial -> Deactivated transition. Then when
the child was activated, the 'from' state was not Initial, and so the
OnInitialActivate method was not called.
The choice to remain in Initial in this case makes sense: we don't want
to go to Deactivated (and come up with another mechanism for firing
OnInitialActivate), as that would fire OnDeactivate without there being
a corresponding OnActivate, which might mess things up.
2015-09-08 22:03:12 +01:00
Antony Male
6ef82a580b
Allow ActionExtension to be instantiated with zero parameters
2015-09-08 13:56:27 +01:00
Antony Male
5c511603b6
Fix 'Eliminate ViewManager'
2015-06-12 19:47:28 +01:00
Antony Male
3b01fac260
Move to gitlink for symbols
2015-06-02 19:49:17 +01:00
Antony Male
f58d0486c0
Make 'View' static
2015-06-02 16:02:18 +01:00
Antony Male
5e412af659
Behave better if s:View.Model used on a bad container
...
Fixes #6
2015-06-02 16:01:12 +01:00
Antony Male
97192899eb
Eliminate View.ViewManager
...
I think that's the last step towards supporting multiple Applications
(if anyone every actually wants to do that). It's good architecture,
anyway
2015-06-02 15:51:27 +01:00
Antony Male
9f3a7d665a
Ensure View.ViewManager is set before Configure called
2015-04-05 17:46:17 +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
25beb99dae
Merge branch 'release/1.1.6' into develop
2015-03-24 09:26:15 +00:00
Antony Male
995484425f
Bump version
2015-03-24 09:25:46 +00:00
Antony Male
337d947a30
Update changelog
2015-03-24 09:25:25 +00: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
9b27dcf3de
ActionExtension assumes any delegate is an EventHandler
...
This catches the case where there are events which aren't derived
from RoutedEventHandler, such as KeyDown
2015-03-24 09:13:52 +00:00
Antony Male
01d1d21368
Merge branch 'release/1.1.5' into develop
2015-03-17 12:33:25 +00:00
Antony Male
1bb0e70691
Bump version
2015-03-17 12:30:30 +00:00
Antony Male
28aa42fa83
Update changelog
2015-03-17 12:30:03 +00:00
Antony Male
9fa749f0b7
Fix incorrect assertion
2015-03-17 12:27:57 +00:00
Antony Male
63a9c4a70f
Avoid binding to IEnumerable in MessageBoxView
...
According to dotMemory, this can cause a memory leak
2015-03-17 12:27:56 +00:00
Antony Male
0e48896a6d
StyletIoC: Don't use Type for the key to the builderUppers dict either
2015-03-17 12:27:56 +00:00
Antony Male
a6cdca23ab
StyletIoC: Optimize slightly by passing Type if available
...
In some paths to some methods, we just know the RuntimeTypeHandle. In some,
we know both the Type and RuntimeTypeHandle. Optimize such that the Type
is used if available, otherwise Type.GetTypeFromHandle is used.
This should mean that StyletIoC is just as quick as it was before this
refactor.
2015-03-17 12:27:55 +00:00
Antony Male
a3293a2c1f
StyletIoC: Move from storing Types to storing TypeHandles
...
Types are reasonably expansive, and when you've got a lot of them, the
memory usage adds up. We don't actually need the Type most of the time -
the hot path just does a dictionary lookup, and we only need the
RuntimeTypeHandle for that.
Besides, Type.GetTypeFromHandle is cheap - typeof(T) does it internally.
So, just use RuntimeTypeHandle on the hot path, and swallow the cost
of an extra Type.GetTypeFromHandle in the rare case that we need an
actual Type.
2015-03-17 12:27:55 +00:00
Antony Male
95a9995746
StyletIoC: Don't cache expressions by default
...
This in turn causes ConstructorInfos to be cached, and those are pretty
expensive.
2015-03-17 12:27:54 +00:00
Antony Male
9b1b1308b6
Shake up how autobinding is done in StyletIoC
...
Instead of creating tons of registrations for all discovered types,
instead create those registrations as and when they are requested.
This means we don't flood the CLR's type cache with RuntimeTypes which
are never used but can never be collected.
2015-03-17 12:27:53 +00:00
Antony Male
a5f642d95c
Improve Stylet.Samples.Validation, and remove .TryClose
2015-03-17 12:27:53 +00:00
Antony Male
56395d8a8a
Give StyletIoCBuilder a default list of assemblies
...
This is used by ToAllImplementations and Autobind, which means we
don't need to pass the correct assemblies into each.
Fixes #4
2015-03-17 12:27:52 +00:00
Antony Male
ea1efcccfd
Merge branch 'release/1.1.4' into temp
2015-03-17 12:27:15 +00:00
Antony Male
575b4141a4
Bump version
2015-03-02 12:54:20 +00:00
Antony Male
6a181d34f9
Update changelog
2015-03-02 12:53:48 +00:00
Antony Male
12e1fd344f
Add InverseInstance property to BoolToVisibilityConverter
2015-02-28 18:35:09 +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
b11a9dabff
Make the MessageBox display properly with multi-line content
2015-02-28 13:25:35 +00:00
Antony Male
48ee25ba29
Add OnStateChanged hook to Screen
2015-02-27 16:48:04 +00:00
Antony Male
21e6441a2f
Re-jig ViewManager slightly to make it easier to override
2015-02-27 09:19:36 +00:00
Antony Male
68c5ed2a50
Improve readability and line count in the Actions classes
2015-02-25 09:56:33 +00:00
Antony Male
51007f4a22
Add support for DependencyPropertyChangedEventHandler to EventAction
2015-02-24 15:38:50 +00:00
Antony Male
9a5143c343
Merge branch 'release/1.1.3' into develop
2015-02-24 12:47:16 +00:00
Antony Male
7109bc6951
Bump version
2015-02-24 12:44:25 +00:00
Antony Male
4a44826f18
Update changelog
2015-02-24 12:44:04 +00:00
Antony Male
9552cbeeee
Add extra 'operators after collection' test to EventAction
2015-02-24 12:40:39 +00:00