Skip to main content

Microsoft Silverlight

Answered Question Silverlight 2 RTW - VSTS 2008 SP1 Find All References does not locate refernces in SL2RTW XAML codeRSS Feed

(0)

dbaechtel
dbaechtel

Member

Member

59 points

207 Posts

Silverlight 2 RTW - VSTS 2008 SP1 Find All References does not locate refernces in SL2RTW XAML code

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.

IanBlackburn
IanBlack...

Contributor

Contributor

2333 points

371 Posts

Answered Question

Re: Silverlight 2 RTW - VSTS 2008 SP1 Find All References does not locate refernces in SL2RTW XAML code

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

 

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities