WinForm's ViewModelViewHost DefaultContent behavior is inconsistent with WPF. #3722
newbienewbie
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The WinForm applies the
DefaultContent
only when ViewModel is null and skip the the assignment ofContent <- view
when view becomes null:While the WPF will set the
Content
=DefaultCotent
in both cases :In a WinForm App, if I dynamically change the
ViewContractObservable
to a contract that is not registered before (e.g. "Contract_That_Doesnot_Exist"), the above assignmentContent <- view;
withinif(view is not null) { ... }
won't be executed. As a result, the Content view remains the same.However, in WPF, if a viewInstance becomes null, the Content will be set as DefaultContent.
Beta Was this translation helpful? Give feedback.
All reactions