voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

Adding controls to canvas dynamically

17 Feb 2023, 17:05

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?
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Adding controls to canvas dynamically

20 Feb 2023, 12:12

Yes, it is a supported scenario. Could you please paste your code here? Thanks.
 
voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

Re: Adding controls to canvas dynamically

22 Feb 2023, 17:00

I created a small app that reproduces this, please let me know where I should post a zipped file.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Adding controls to canvas dynamically

23 Feb 2023, 11:56

You can upload the sample to the cloud and share the link here or in a ticket in our bugtracker.
 
voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

Re: Adding controls to canvas dynamically

23 Feb 2023, 17:06

I just submitted a ticket with a link to the sample app. Thank you.
https://www.noesisengine.com/bugs/view.php?id=2521
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Adding controls to canvas dynamically

01 Mar 2023, 10:39

Thank you for the ticket!

Who is online

Users browsing this forum: Bing [Bot] and 3 guests