Binding from a few view models
Posted: 08 Jul 2024, 14:22
I have two view models and the second one is not seen by the system.
How to make the xaml see this second view model?
The second view model called CircleViewModel.
Thank you for the answer in advance!
<Image Source="{StaticResource CenterCircleButtonOff}" Stretch="Uniform" Visibility="{Binding CircleCenterOffMouseVisibility, Converter={StaticResource BooleanToVisibilityConverter}}"/>
[NOESIS/E] Binding failed: Path=CircleCenterOffMouseVisibility, Source=DataModelApp.ViewModel(''), Target=Image(''), TargetProperty=UIElement.Visibility
How to make the xaml see this second view model?
The second view model called CircleViewModel.
Thank you for the answer in advance!
<Image Source="{StaticResource CenterCircleButtonOff}" Stretch="Uniform" Visibility="{Binding CircleCenterOffMouseVisibility, Converter={StaticResource BooleanToVisibilityConverter}}"/>
[NOESIS/E] Binding failed: Path=CircleCenterOffMouseVisibility, Source=DataModelApp.ViewModel(''), Target=Image(''), TargetProperty=UIElement.Visibility