Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Silverlight 2 RTW - VSTS 2008 SP1 Find All References does not locate refernces in SL2RTW XAML code
1 replies. Latest Post by IanBlackburn on October 14, 2008.
(0)
dbaechtel
Member
59 points
207 Posts
10-14-2008 11:42 AM |
I have a SL2RTW application in VB.Net. In the XAML I have several items that reference names that are used in the code behind, like MouseLeftButtonDown="OnListAll". When I use the Find All References, VSTS 2008 SP1 does not list lines in XAML where references are made.
To reproduce: Create a VSTS 2008 SP1 VB Silverlight 2 Application. Create a new Silverlight UserControl. Add a TextBlock control to the UerControl. Add the attribute MouseLeftButtonDown="OnListAll" to the TextBlock. Navigate to the Event Handler. Select the name of the Event Handler, right mouse button click on the name and select Find All References. Notice that no XAML code lines are listed.
Find All References should listed references in Silverlight XAML code as well.
IanBlack...
Contributor
2333 points
371 Posts
10-14-2008 11:53 AM |
I get the same behaviour for the scenario you describe.
However it works fine for named controls. For example if you give your TextBlock an x:Name = "whatever" then use that in code, Find All References will correctly locate the Xaml as well as the generated code in Page.g.cs