Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Creation is not working properly with HotDesing #35

Open
DevTKSS opened this issue Dec 14, 2024 · 5 comments
Open

Template Creation is not working properly with HotDesing #35

DevTKSS opened this issue Dec 14, 2024 · 5 comments
Labels
difficulty/tbd kind/bug Something isn't working

Comments

@DevTKSS
Copy link

DevTKSS commented Dec 14, 2024

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.

@DevTKSS DevTKSS added difficulty/tbd kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Dec 14, 2024
@nickrandolph
Copy link

@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.

@nickrandolph nickrandolph removed the triage/untriaged Indicates an issue requires triaging or verification. label Dec 17, 2024
@DevTKSS
Copy link
Author

DevTKSS commented 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
Copy link

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
Copy link
Author

DevTKSS commented 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
Copy link
Author

DevTKSS commented Jan 4, 2025

@nickrandolph tryed NavigationView.HeaderTemplate DataTemplate Createion with 5.6.0-dev.298
getting this output:

warn: Uno.UI.HotDesign.Client.AppUpdater[0]
      Failed to SET local property: object not found at path.
fail: Uno.UI.HotDesign.XamlQuerier[0]
      Unable to find element in XAML : 'C:/Users/TKSSonja/Projects/UnoApp1/UnoApp1/Presentation/MainPage.xaml#ID7c2146cb0d624e098f080ceb00aef7dc7c2146cb0d624e098f080ceb00aef7dcImage40539104'
fail: Uno.UI.HotDesign.Client.XamlUpdates.ShadowXamlDom[0]
      Failed to get original XAML from Shadow XD for element 'C:/Users/TKSSonja/Projects/UnoApp1/UnoApp1/Presentation/MainPage.xaml#ID7c2146cb0d624e098f080ceb00aef7dc7c2146cb0d624e098f080ceb00aef7dcImage40539104'. Error: Unable to find element in XAML : 'C:/Users/TKSSonja/Projects/UnoApp1/UnoApp1/Presentation/MainPage.xaml#ID7c2146cb0d624e098f080ceb00aef7dc7c2146cb0d624e098f080ceb00aef7dcImage40539104'

and everything it did add:

          <NavigationView.HeaderTemplate>
              <DataTemplate>
                  <Grid ColumnDefinitions="Auto,Auto">
                    <AppBarButton />
                    <Image />
                  </Grid>
              </DataTemplate>
          </NavigationView.HeaderTemplate>

tryed to add different things:

  • Navigation like Request but also Region
  • Image Source from UnoImage in assets
  • Command Bound to MainViewModel which was visible in the Bindings Panel in Studio
  • Image Position in the Grid -> Column 1 would have been the correct place

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants