views:

13

answers:

1

Hello, I am wanting to simply get the current XAML filename so I can make a decision in a user control. Any ideas on where this value lives in Silverlight 3?

For example:

if (currentPage == "home")  
    homeLink.foreground = "white"  
elseif (cuurentPage == "settings")  
    settingsLink.foreground = "white"  
A: 

Maybe I didn't undestand your question, but this.GetType().Name should give you what you need.

Klinger
I think this is my answer. Thanks for the input! NavigationService nav = new NavigationService(); string currentPage = nav.Source.Host;
ryan maas