Description
Current behavior
The Generator is not doing e.g. DataTemplate or ControlTemplate in some resources or even in tag of the control itself.
The created things are added INSIDE other elements which naturally resulting in not longer working properly if happening.
Not clear what I mean? See this video made from exactly what I am expirencing happening:
Unbenanntes.Video.Mit.Clipchamp.erstellt.4.mp4
It is not even telling, that it has produced problems only the "no changes to be applyed" which is not at all the case XD
Expected behavior
Maybe some DataTemplate in HeaderTemplate like it was told, or even in the resources via x:Key, also possible way to do.
Which tool(s) are affected?
No response
How to reproduce it (as minimally and precisely as possible)
See the video attached in the current behaviour
Workaround
you can use it, but be aware, that you will have to sort the propertys added afterwards to the correct place (okay, maybe just do not create templates with it at this point, saves nerves ;) )
Affected platforms
Desktop (Skia)
Uno.Sdk version
5.5.54
IDE used
Visual Studio 2022
IDE version
17.12.3
Uno Platform Extension version
1.0
Relevant plugins
No response
Anything else we need to know?
I did delete some stackpanels which has been duplicated added (I did not see it did add them already, not tool fault) before which resulted in a known issue #29 and can a starting source of this issue be, which started to confuse the tool to finally lead to this.
Activity
nickrandolph commentedon Dec 17, 2024
@DevTKSS template creation is being updated to be more reliable. You can check out the latest uno.sdk (dev) version to see how it is evolving.
DevTKSS commentedon Dec 18, 2024
@nickrandolph may you could please explain what exactly you do mean with "dev" prefix? Not seen anything like this in the versioning til now and for doing as requested I need to know this from you
nickrandolph commentedon Dec 20, 2024
In global.json you can set the uno.sdk version number. Normally this would be set to a stable version number (eg 5.5.56). If you want to try out the latest "dev" version (ie a prerelease version) you can update the uno.sdk to the latest version listed on nuget.org (https://www.nuget.org/packages/Uno.Sdk) which at this time is 5.6.0-dev.298
DevTKSS commentedon Jan 3, 2025
Not solved, but could maybe be parially resulting of same souce like #29 with the deleting issue. Would maybe review this issue here again if that one is fixed?
DevTKSS commentedon Jan 4, 2025
@nickrandolph tryed NavigationView.HeaderTemplate DataTemplate Createion with 5.6.0-dev.298
getting this output:
and everything it did add:
tryed to add different things:
the toastMessage I got when it tryed to update was something with readonly list, but I am not quick enough to catch this on video, sorry...
nickrandolph commentedon Feb 12, 2025
@carldebilly can you confirm that with the latest changes to templates that this has been addressed
agneszitte commentedon Mar 7, 2025
Hi @DevTKSS !
Could you confirm if you're still encountering this issue with the latest Uno Platform Visual Studio Extension version 5.6.40.64 and latest Uno.Sdk 5.6.45?
These versions were released alongside our latest Hot Design Public Beta announcement.
Thanks! 😊
DevTKSS commentedon Mar 7, 2025
@agneszitte I wanted to check yesterday after hearing the announcement on discord, but after using the configuration arguments like --skip on uno-check for a test of the available arguments I am now running into issue with it because it keeps skipping...
Uno Platform Check.txt
checked the presets for studio to see if those are possibly influencing the things studio needs and would tell they should not. could you check if this assumtion is right or if those could cause issues with it? runned dotnet new install uno.templates and provided check and updated the extension alongside with visual studio itself, so beside those checks should everything be up to date...
before this update I have had still issues, so lets have a look with the update...
DevTKSS commentedon Mar 8, 2025
hm... so generally the app creation
Uno Platformoutput does look a bit strange... would not expect it to log dbug in a general project wizard creation, that might not look so good in a business app development szenario 😅Uno Platform Template Launching Uno.txt
the xmlns EOL issue is not longer happening successfully 👍
checked now with current templates and updates and... would say its creating one, BUT not relyable and buggy.
Binding is one of the issue points in Template creation:
I did a screencast, but clipchamp (Microsofts default) did not record the App 🙄 so I will do those parts again with other software to show you whats happening and what I am trying to do so its happening. Until them I can only add the console outputs while runtime which are really not pretty (because stacktraces of exceptions) and the video where you can (sorry) only see that code parts it did create in the background after ending debug mode.
current video was too big to upload, here is a link to it on my onedrive
did already cut most of the parts out where, because of the named recording issue you could only see the mouse but not the window of the app.
Microsoft Visual Studio-Debugging-Konsole.txt
Microsoft Visual Studio-Debugging-Konsole1.txt
DevTKSS commentedon Mar 8, 2025
@agneszitte here you have the created project
UnoApp6_HotDesign_TemplateIssue35.zip and the video with explaination what is effektiv not working with the template creation at this point from my point of view, so you can see how to repro this and some suggestions to consider for solution. And here the consoleoutput which maybe tells you more (dont know if its same like yesterday
Microsoft Visual Studio-Debugging-Konsole3.txt
agneszitte commentedon Mar 10, 2025
Hi @DevTKSS, Thank you for your feedback!
I'll review the details you've shared to better understand your current issues and blockers. I'll follow up with you regarding any questions I may have as needed.
DevTKSS commentedon Mar 19, 2025
@agneszitte Just an idea, but to that issue the studio engine is having problems identifying an xaml item, what about if that would be done similar to the winforms designer and adding a default name like button1, button2 ...? This way it might also be a solution for #70 probably
DevTKSS commentedon May 13, 2025
@agneszitte tryed today with a TabBar.HeaderTemplate, sadly not state-able as resolved... maybe the following details helping you/team to fix it in the future?
Code in the Page:
target was, to replace the current hard coded Header with a HeaderTemplate
How to reproduce:
used this Project (link to commit)
was on refactoring the Expander to use DataTemplate because the Expander like this would be used at multiple pages (see e.g. DashboardPage on the linked Repository) so it made sense to me, to have the Contents at least moved to RessourcesDictionary, since I am till this point not able to define own ControlTemplates when they would use a Command to bind them to. (like the TabBarItem). Since it did work like this in Dashboard Page, I was hopefull Studio could hint me how I should do it, but... nah... :(
the "missing" nuget is this one, which is set to private but just because of its beeing part of #2734
nuget
page tryed it with: ListboardPage - Expander at the bottom
nickrandolph commentedon Jun 30, 2025
Closing this issue now and will continue to follow up other related issues