Skip to content

Navigationview.menuitem problem #70

Closed
Closed

Description

@DevTKSS

Current behavior

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

Activity

  1. added
    triage/untriaged
    on Mar 18, 2025
  2. nickrandolph commented on Mar 21, 2025

    @nickrandolph

    Thanks for raising this. I'll take a look and see how we can improve the experience

  3. DevTKSS commented on Mar 21, 2025

    @DevTKSS
    Author

    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

  4. DevTKSS commented on Mar 21, 2025

    @DevTKSS
    Author

    @nickrandolph remembered right now the settingsitem of navigationview does also have nother issue in studio:

  5. removed
    triage/untriaged
    on Mar 26, 2025
  6. added theissue type on Mar 26, 2025
  7. rafael-rosa-knowcode commented on Mar 27, 2025

    @rafael-rosa-knowcode

    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

    Image

    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)

    Image

    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

    Image

    Then treat the new Elements as Complex Types...

    Image

  8. DevTKSS commented on Mar 27, 2025

    @DevTKSS
    Author

    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

  9. nickrandolph commented on Mar 31, 2025

    @nickrandolph

    @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

  10. DevTKSS commented on Mar 31, 2025

    @DevTKSS
    Author

    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🤷

  11. nickrandolph commented on Apr 4, 2025

    @nickrandolph

    @DevTKSS sorry I wasn't clear - you'll need to wait for the next update in order to test this fix

  12. DevTKSS commented on Apr 4, 2025

    @DevTKSS
    Author

    Thanks for the update 👍

  13. DevTKSS commented on Apr 15, 2025

    @DevTKSS
    Author

    @nickrandolph checked it again, workes now just fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions