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

Go to definition from .xaml to xaml.cs does not work and vice versa #35484

Open
maxinfet opened this issue Jan 19, 2018 · 4 comments
Open

Go to definition from .xaml to xaml.cs does not work and vice versa #35484

maxinfet opened this issue Jan 19, 2018 · 4 comments

Comments

@maxinfet
Copy link

When attempting to go definition from a .xaml file to a .xaml.cs using the new project system I get the following error.

image

Also when going from the .cs to the .xaml.cs it takes me to the .g.i.cs.

Is there a work around that I can put in place to make it properly go to definition? Also can anyone point me to what code controls going to definition? I have been searching around for how you would implement custom go to definition logic and haven't found how I would do this.

@maxinfet maxinfet changed the title Go to definition from XAML to code behind does not work Go to definition from .xaml to xaml.cs does not work and vice versa Jan 19, 2018
@Pilchie
Copy link
Member

Pilchie commented Jan 19, 2018

For invocations starting from .cs, take a look here

Not sure if the code for starting in Xaml is OSS. @mgoertz would probably know if it is.

@maxinfet
Copy link
Author

@Pilchie Thank you for the information on where to find that in roslyn

@davkean davkean transferred this issue from dotnet/project-system May 3, 2019
@davidwengier
Copy link
Contributor

davidwengier commented May 3, 2019

Update: Go to Definition from .xaml is now working and navigates to .xaml.cs correctly.

Going from .xaml.cs in an SDK project still brings up the .g.cs file.

@davidwengier
Copy link
Contributor

FYI @jinujoseph

It would be good if this could be prioritised for 16.2 as the most of the WPF support for SDK projects is coming in 16.1

@jinujoseph jinujoseph added this to Backlog in IDE: InternalPriority via automation May 3, 2019
@jinujoseph jinujoseph added this to the Backlog milestone May 3, 2019
@jinujoseph jinujoseph moved this from Backlog to Priority 3 in IDE: InternalPriority May 3, 2019
@jmarolf jmarolf added the User Story A single user-facing feature. Can be grouped under an epic. label Dec 2, 2021
@jmarolf jmarolf removed the User Story A single user-facing feature. Can be grouped under an epic. label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants