Page 1 of 1
Adding controls to canvas dynamically
Posted: 17 Feb 2023, 17:05
by voula_d
I'm trying to evaluate Noesis for porting a quite big WPF application. I'm trying to add controls to a canvas by dynamically loading xaml. But no controls are added to the canvas, or rather I can see that they are added as Children but never get rendered. I get the following error in the output: Null item added to UIElementCollection.
The WPF version works and I have code that reproduces this scenario in Noesis. Is it possible to dynamically load controls in Noesis?
Re: Adding controls to canvas dynamically
Posted: 20 Feb 2023, 12:12
by jsantos
Yes, it is a supported scenario. Could you please paste your code here? Thanks.
Re: Adding controls to canvas dynamically
Posted: 22 Feb 2023, 17:00
by voula_d
I created a small app that reproduces this, please let me know where I should post a zipped file.
Re: Adding controls to canvas dynamically
Posted: 23 Feb 2023, 11:56
by sfernandez
You can upload the sample to the cloud and share the link here or in a ticket in our bugtracker.
Re: Adding controls to canvas dynamically
Posted: 23 Feb 2023, 17:06
by voula_d
I just submitted a ticket with a link to the sample app. Thank you.
https://www.noesisengine.com/bugs/view.php?id=2521
Re: Adding controls to canvas dynamically
Posted: 01 Mar 2023, 10:39
by jsantos
Thank you for the ticket!