dotnet / dotnet/wpf

VisualDiagnostics.GetXamlSourceInfo returns null for nested templates

Open
#2,119 0 comments 0 reactions 0 assignees View on GitHub
Bug Partner Request
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

1. Open VS 2019
2. Create new WPF Core app.
3. Open MainWindow.xaml.
4. Replace Grid element with XAML below.
5. Make sure your config is Debug x86.
6. F5
7. Go to Debug > Windows > Live Visual Tree. Make sure Just My XAML is turned off (it exists and is on by default for VS 16.4). Search for Abc.
**Actual**: elements from "inner" template don’t have Go to Source icon
**Expected**: elements from "inner" template have Go to Source icon

![InnerElementsNoSource](https://user-images.githubusercontent.com/48451158/67601506-644d0600-f729-11e9-8cba-5095fb5b1c14.png)































Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.