Page 1 of 1

Basic misunderstandings regarding data-binding - Where to start?

Posted: 05 Sep 2017, 16:03
by Hansi
Hi,
I walked through the data-binding documentation. (https://www.noesisengine.com/docs/Gui.C ... orial.html)
I have a list of game rooms I want to display inside a ListView.

But at first I only tried to copy 1:1 the DataModel3 / Player example from the "Binding to a Collection" section.
Of course I got the Noesis error "NoesisException: StaticResource 'dataModel' not found"

I can't find any explanation about this in the document and still have no clue how to get data-binding to work.

Where are the obvious mistakes?

Thanks!

Re: Basic misunderstandings regarding data-binding - Where to start?

Posted: 06 Sep 2017, 12:00
by Hansi
After trying it over and over again, it suddenly worked.
I have no clue why, but everything's fine now I guess.

Re: Basic misunderstandings regarding data-binding - Where to start?

Posted: 06 Sep 2017, 23:39
by sfernandez
Perhaps dataModel script was not compiled yet and xaml parser was unable to create an instance to add it as resource, then it failed to find the StaticResource.
And probably after playing everything worked as all the code got compiled.