microsoft / WinUI-Gallery

This app demonstrates the controls available in WinUI and the Fluent Design System.
MIT License
2.81k stars 628 forks source link

Idea: _drag_ icon codes into text editor #1237

Open Jay-o-Way opened 1 year ago

Jay-o-Way commented 1 year ago

Issue type

enhancement

Which version of the app?

WinUI 3 Gallery

Description

First of all, I absolutely LOVE the new pages for the resources like typography, icons, colors and such. They are easy to use and should be the single bible for every developer!

Now, I had this idea. On the icons page we can search for icons and on the right side we can copy a few formats for the code. Again, nice job. Copy & paste is handy for lots of occasions. But sometimes I only have to insert that icon/code once or twice. My Idea is: place Gallery and an IDE window next to each other, search an icon, now drag the desired format into the text area where my code is. No keyboard required for the action and my clipboard stays a bit cleaner :)

marcelwgn commented 1 year ago

This sounds like an interesting idea, what code would you expect to be inserted when pasting? Should this be the XAML Code or the C# code or just a specific codepoint?

Jay-o-Way commented 1 year ago

There are a few variants, so the exact same code as the one that is selected.

marcelwgn commented 1 year ago

Ohh I see, I thought you meant dragging the icon itself. Should have read your post more carefully 😅 This sounds like a really cool idea, @karkarl what do you think?

karkarl commented 12 months ago

I wonder if this interaction is inline with Windows design. I can start a thread with the design team.

Jay-o-Way commented 4 weeks ago

@karkarl any update or thoughts?