Hansi
Topic Author
Posts: 12
Joined: 24 May 2017, 11:30

Basic misunderstandings regarding data-binding - Where to start?

05 Sep 2017, 16:03

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!
 
Hansi
Topic Author
Posts: 12
Joined: 24 May 2017, 11:30

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

06 Sep 2017, 12:00

After trying it over and over again, it suddenly worked.
I have no clue why, but everything's fine now I guess.
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

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

06 Sep 2017, 23:39

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.

Who is online

Users browsing this forum: No registered users and 1 guest