I have tried a few times to find an answer in the posts but not found yet (at least in what I understand since fairly new to WPF).
I define a Data Context in the view constructor:
this.DataContext = viewModel;
I would like to use multiple data contexts in a single view if possible? I have heard multiple inconsistent answers to this from others. The goal is that I need access to properties in multiple view models. For example my view XAML is used in cases like that shown below:
<MultiBinding Converter="{StaticResource multiBooleanToVisibilityConverter}">
<Binding Path="ResultControlsVisibileByDefault" UpdateSourceTrigger="PropertyChanged"/>
<Binding Path="StarWidthValueList.Count" UpdateSourceTrigger="PropertyChanged"/>
</MultiBinding>
It would be great if I could explicitly reference each property in the appropriate view model.
Note: there are multiple view models based on windows that were overlaid in the main window. They become active based on wizard-like selections made by the user.