From a17926d02e58e8bb94f68f3d374cebeca407db0d Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Mon, 11 Feb 2019 18:05:06 +0000 Subject: [PATCH] ViewControl and ViewForm were not actually reacting when their data context changed -- fixed; view models can now delay their search for a main window (needed to synchronize change notifications to the main threads because of those shitty WinForms controls); WindowManager now accepts ...Page as a postfix for a view name, too git-svn-id: file:///srv/devel/repo-conversion/nuwi@48 d2e56fa2-650e-0410-a79f-9358c0239efd --- Nuclex.Windows.Forms (net-4.0).csproj | 5 +- Source/LateCheckedSynchronizer.cs | 137 +++++++++++++++++++++++++ Source/ViewModels/ThreadedAction.cs | 38 +++---- Source/ViewModels/ThreadedViewModel.cs | 33 ++---- Source/Views/IView.cs | 4 + Source/Views/ViewControl.cs | 2 + Source/Views/ViewForm.cs | 2 + Source/WindowManager.cs | 2 + 8 files changed, 171 insertions(+), 52 deletions(-) create mode 100644 Source/LateCheckedSynchronizer.cs diff --git a/Nuclex.Windows.Forms (net-4.0).csproj b/Nuclex.Windows.Forms (net-4.0).csproj index 37d31d3..e57c2cb 100644 --- a/Nuclex.Windows.Forms (net-4.0).csproj +++ b/Nuclex.Windows.Forms (net-4.0).csproj @@ -59,6 +59,7 @@ + @@ -154,7 +155,9 @@ Foundation.snk - + + +