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

Designer should offer namespace suggestions when pressing CTRL+. (period) just like WPF. #262

Closed
vchelaru opened this issue Jul 19, 2022 · 0 comments · Fixed by #408
Closed

Comments

@vchelaru
Copy link

vchelaru commented Jul 19, 2022

Is your feature request related to a problem? Please describe.
Whenever I am referencing a newly-created Avalonia control in another, I must remember the rather-complex xmlns syntax. I've never memorized this by heart because usually this can be automatically through a hotkey shortcut in WPF.

It breaks flow to have to look up how to do this, and it's not something that I remember for long because when I go back to working in WPF, I never have to do it.

Describe the solution you'd like
I would like to be able to press CTRL + . (that's the period key) and have an option to add the appropriate xmlnx to my current control/window, as is done in WPF.

When using WPF, referencing a control which is not properly qualified will show an underline and a light bulb:

image

Pressing CTRL+. or clicking on the lightbulb shows the options for resolving the problem,

image

Describe alternatives you've considered
As mentioned above, the absence of this feature requires remembering the proper syntax for qualifying the type which I find difficult to remember and easy to write incorrectly.

Additional context
I tried this in Visual Studio 2022. I have not tried in Visual Studio 2019.

@maxkatz6 maxkatz6 transferred this issue from AvaloniaUI/Avalonia Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants