Whenever changing views I get errors saying that properties that does not exist cant be data-bound. #27637
Unanswered
Legosharkie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing an application where you can select different modules. They are all in a CollectionView and there are two different types, ModuleA and ModuleB where they both are derived from a BaseModule. When selecting a module I want a view to appear where there are module specific settings using data-bindings to properties of each module.
I set the view with

where
this
is the viewmodel I use.I preload the views so that I can re-use them.

And whenever I select a new module

Even though I explicitly set the view to
null
before assigning another view to it (so that I get rid of whatever exists before) it gives meBinding: 'NameB' property not found on 'UraniumTest.Model.ModuleA', target property: 'Microsoft.Maui.Controls.Label.Text'
and
Binding: 'NameA' property not found on 'UraniumTest.Model.ModuleB', target property: 'Microsoft.Maui.Controls.Label.Text'
.What am I doing wrong? Is there another method to have "conditional" configuration views like I want? I have done research and haven't found anything.
Beta Was this translation helpful? Give feedback.
All reactions