Skip to content

Small miscellaneous Hot Design usage niggles #53

@mrlacey

Description

@mrlacey

EDIT: I've remembered you don't like issues with multiple points in them. I have split this into multiple issues. (linked below)


Current behavior

  • Undoing or Redoing the moving of an item within a StackPanel causes confusing messages to be displayed. For example, if I have a TextBox above a button in a StackPanel and then use the Elements tool window to drag the TextBox so it is below the button, the UI is updated accordingly, but if I then UNDO that action, the message that is displayed is "Moving StackPanel". This isn't a big deal with very simple UIs, but with more complicated screens, it becomes confusing over which StackPanel has been moved or whether it is the contents of the StackPanel, rather than a StackPanel that has been moved.

  • Some undo/redo messages seem to be showing generic .ToString() descriptions rather than something useful/meaningful. e.g:

Image

  • In the "Elements" tool window, adding something to a command collection (primary or secondary) of a NavigationBar by clicking the + button causes the whole Navigation Bar to be selected and any expanded entries of the PrimaryCommands or SecondaryCommands to be collapsed, rather than selecting the newly added element.

  • In the Elements tools window, dragging items between the PrimaryCommands and SecondaryCommands doesn't work correctly. In this animation:
    -I try and move an item from the secondary list to the first, it incorrectly shows it as nested but when the automatic (hot?) reload kicks in the move fails with no warning.
    -I then try and drag (move an item) from the primary to the secondary list and that fails also.

Image

  • What are these icons? (I can't work out their meaning and there is no tooltip to explain.):

Image

  • Using the canvas to drag to reorder doesn't work:

Image

Also note in the above image that the "Ctrl+Z" tooltip is often displayed in strange places and even when there is nothing to undo.

  • When using a custom MarkupExtension, there is no indication of this in the Properties Window.
Image
  • If using a custom MarkupExtension (as above) and I then "Reset" the value via the property window, Undo does not put the value back. It does update the XAML, but the UI doesn't update to show the value as per the markup extension.

  • At one point I got an error message briefly displayed in the corner of the screen about a failure to update the XAML, this wasn't reported to the output window (of VS) so I don't know how to retrieve it or see it again to look at exactly what went wrong. Is there any way to copy these messages?

  • When the running app (in hot design mode) doesn't already have focus, some buttons do not respond to being clicked and it's not always obvious that nothing has happened other than the app getting focus. (This may be a Skia thing as I remember similar issues with Skia based WPF apps previously.)

  • Simple XAML update issue with very basic repro:

    • With newly created default app in HD mode:
    • Select button
    • in Properties tab, open the extended menu for the Content.
    • Click "Reset"
    • See XAML fails to update
    • Feel very sad :(

Image

Expected behavior

No response

Which tool(s) are affected?

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Affected platforms

Desktop (Skia)

Uno.Sdk version

5.6.22

IDE used

Visual Studio 2022

IDE version

7.13.0 Preview 5.0

Uno Platform Extension version

5.6.15.19

Relevant plugins

No response

Anything else we need to know?

I was just having a quick look at the current state of things.
The above is just a couple of things I noticed while doing some simple "playing around" with the tool.
This was not meant to be a complete review and there may be other things I'd find if I took longer or a more structured approach.
Looks like some nice progress has been made though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions