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
This commit is contained in:
parent
b405fe957b
commit
a17926d02e
8 changed files with 171 additions and 52 deletions
|
@ -32,6 +32,10 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
/// </remarks>
|
||||
object DataContext { get; set; }
|
||||
|
||||
// Whether the view owns its view model and it needs to be disposed after
|
||||
// the view ceases to exist
|
||||
//bool IsOwnedByView { get; set; }
|
||||
|
||||
}
|
||||
|
||||
} // namespace Nuclex.Windows.Forms.Views
|
||||
|
|
|
@ -72,7 +72,9 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
get { return this.dataContext; }
|
||||
set {
|
||||
if(value != this.dataContext) {
|
||||
object oldDataContext = this.dataContext;
|
||||
this.dataContext = value;
|
||||
OnDataContextChanged(this, oldDataContext, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,9 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
get { return this.dataContext; }
|
||||
set {
|
||||
if(value != this.dataContext) {
|
||||
object oldDataContext = this.dataContext;
|
||||
this.dataContext = value;
|
||||
OnDataContextChanged(this, oldDataContext, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue