You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New created navigationviewitems via studio in navigationview.menuitems are not enterable with studio
Expected behavior
To set the properties it is required to access items in the menu items property of navigation view
Which tool(s) are affected?
Hot Design™
How to reproduce it (as minimally and precisely as possible)
Create new navigationview in studio, mvux, xaml app, unio extensions navigation, add e.g. 2 Menuitems with type of navigationviewitem, try to access its propertys like for adding the displayed content or icon of it
Workaround
Use hotreload but code it yourself
Affected platforms
Desktop (Skia)
Uno.Sdk version
5.6.45
IDE used
Visual Studio 2022
IDE version
Latest
Uno Platform Extension version
Latest
Relevant plugins
No response
Anything else we need to know?
Tryed to implement HotDesign with this in a showcase video part to motivate beginners with the simplyfyed and speeded up workflow as questioned by @sasakrsmanovic but this bug would not be good promo currently
Maybe it could improve this not finding of the xaml elements in array properties if a indexed defaultname would be used? Similar to winforms designer on this
Currently we support Add new items on the Elements Tree when the Property is a Collection with a explict type.
Eg. NavigationBar.PrimaryCommands with is ICommandBarElement
This NavigationView.MenuItems property is an IList of object.
And for now we are not supporting Adding generic object elements in the Elements Tree.
And the same applies to the Canvas, we don't support add items the the Property
We are able to add just the Content. (Eg. The button pointed by the green arrow)
To work without edit the Xaml and continuing the use of the HotDesign,
you can use the PropertyGrid to add new Element to the NavigationView.MenuItems
I don't really know what you wants to tell me by that. I do not see any relationship of this issue to your explanation🤔
For example I am talking about the navigation view and the menu items it's containing and you are talking about the navigation bar. Both are navigation controls but you are talking about content and I am about the Menuitems 🤔
Transferred to the navigation bar that's good have be the collections of primary commands and secondary commands collection🤷
Kannst du galore part of your example with the man you Items there, the issue I am talking about is coming after inserting exactly the navigationviewitem it's correct collection the menu items in the navigation view. If you at those to this collection and try to enter the content of the first or second one, thats giving you the "xaml element not found" issue, where you will have to switch out of hots Design to set them up
So in case you wanted to tell me , I have to addam in the Menu Items collection like that, that is correct, but that is not at all solving this issue
@DevTKSS apologies for any confusion - Rafael was just making the point that the issue you raised is similar to one we're seeing withe NavigationBar. They're both related to how we select items after creation which should be fixed
Okay, than maybe you can explain to me, what I've done wrong at the selection? Because done exactly what he shown in the images and after the shown steps, I did just try to select the first or second one if that list below "add" to enter its properties. If thats the wrong way, and while they do not show on the lefthandside in the treeview than how should I select a Menuitems>NavigationViewItem to e.g set its icon or text or region with HotDesign? I do not see any chance and always have to switch to regular coding/hotreload for that🤷
Activity
nickrandolph commentedon Mar 21, 2025
Thanks for raising this. I'll take a look and see how we can improve the experience
DevTKSS commentedon Mar 21, 2025
Maybe it could improve this not finding of the xaml elements in array properties if a indexed defaultname would be used? Similar to winforms designer on this
DevTKSS commentedon Mar 21, 2025
@nickrandolph remembered right now the settingsitem of navigationview does also have nother issue in studio:
rafael-rosa-knowcode commentedon Mar 27, 2025
Currently we support Add new items on the Elements Tree when the Property is a Collection with a explict type.
Eg. NavigationBar.PrimaryCommands with is ICommandBarElement
This NavigationView.MenuItems property is an IList of object.
And for now we are not supporting Adding generic object elements in the Elements Tree.
And the same applies to the Canvas, we don't support add items the the Property
We are able to add just the Content. (Eg. The button pointed by the green arrow)
To work without edit the Xaml and continuing the use of the HotDesign,
you can use the PropertyGrid to add new Element to the NavigationView.MenuItems
Then treat the new Elements as Complex Types...
DevTKSS commentedon Mar 27, 2025
I don't really know what you wants to tell me by that. I do not see any relationship of this issue to your explanation🤔
For example I am talking about the navigation view and the menu items it's containing and you are talking about the navigation bar. Both are navigation controls but you are talking about content and I am about the Menuitems 🤔
Transferred to the navigation bar that's good have be the collections of primary commands and secondary commands collection🤷
Kannst du galore part of your example with the man you Items there, the issue I am talking about is coming after inserting exactly the navigationviewitem it's correct collection the menu items in the navigation view. If you at those to this collection and try to enter the content of the first or second one, thats giving you the "xaml element not found" issue, where you will have to switch out of hots Design to set them up
So in case you wanted to tell me , I have to addam in the Menu Items collection like that, that is correct, but that is not at all solving this issue
nickrandolph commentedon Mar 31, 2025
@DevTKSS apologies for any confusion - Rafael was just making the point that the issue you raised is similar to one we're seeing withe NavigationBar. They're both related to how we select items after creation which should be fixed
DevTKSS commentedon Mar 31, 2025
Okay, than maybe you can explain to me, what I've done wrong at the selection? Because done exactly what he shown in the images and after the shown steps, I did just try to select the first or second one if that list below "add" to enter its properties. If thats the wrong way, and while they do not show on the lefthandside in the treeview than how should I select a Menuitems>NavigationViewItem to e.g set its icon or text or region with HotDesign? I do not see any chance and always have to switch to regular coding/hotreload for that🤷
nickrandolph commentedon Apr 4, 2025
@DevTKSS sorry I wasn't clear - you'll need to wait for the next update in order to test this fix
DevTKSS commentedon Apr 4, 2025
Thanks for the update 👍
DevTKSS commentedon Apr 15, 2025
@nickrandolph checked it again, workes now just fine :)