Nir Hasson
Topic Author
Posts: 53
Joined: 10 Nov 2013, 21:20
Contact:

Re: Programmatically Creating Elements from DataTemplate

11 Dec 2013, 13:55

No other cache/registry stores XAML data apart from UI resources.

If you revert the NsProp name back to "Id" and the binding path in the xaml, does the TextBlock show the text again?
Yes - if I change it back it works..
Note that this way you are rebuilding the entire data base each time. As you increase the number of xamls this can be quite inefficient. A simple "build" command is able to detect changes and start and incremental build.
Thanks for the tip, I'll change it to use the build command..
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Programmatically Creating Elements from DataTemplate

11 Dec 2013, 15:03

Yes - if I change it back it works..
Ok, so let's do it step by step to figure out what is happening.

1) Set the property name in code as "Desc", and leave it as "Id" in the xaml. Compile your application, build the resources and see if text is shown.

2) Set the property name in code as "Id", and modify the xaml to "Desc". Compile your application, build the resources and see if text is shown.
 
Nir Hasson
Topic Author
Posts: 53
Joined: 10 Nov 2013, 21:20
Contact:

Re: Programmatically Creating Elements from DataTemplate

11 Dec 2013, 15:50

1) Set the property name in code as "Desc", and leave it as "Id" in the xaml. Compile your application, build the resources and see if text is shown.
Didn't work.. :(
2) Set the property name in code as "Id", and modify the xaml to "Desc". Compile your application, build the resources and see if text is shown.
Didn't work.. :(

I also tried using third new name for that property, but it seems that the TextBlock has some special attachment to the "Id" name :) It won't let it go..
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Programmatically Creating Elements from DataTemplate

11 Dec 2013, 16:32

Could you please create a ticket in the bugtracker (bugs.noesisengine.com) and attach the xaml and the code that is failing, so I can take a look and try to reproduce the error?
 
Nir Hasson
Topic Author
Posts: 53
Joined: 10 Nov 2013, 21:20
Contact:

Re: Programmatically Creating Elements from DataTemplate

11 Dec 2013, 17:07

I just opened a new issue on the bug tracker with code and XAML file to reproduce this issue.
 
Nir Hasson
Topic Author
Posts: 53
Joined: 10 Nov 2013, 21:20
Contact:

Re: Programmatically Creating Elements from DataTemplate

22 Dec 2013, 17:03

Hi,

I can confirm that Data Binding Issue fixed on the 1.1.3 version.

Thanks !

Who is online

Users browsing this forum: Google [Bot] and 0 guests