I have a Silverlight 4 web application that needs to be added to an already-existing SharePoint application. SharePoint and the silverlight web app could be on the same server or different servers. Right, now the web app works fine by adding a Page Viewer web part to SharePoint and putting in the appropriate URL.
I would like to also get the theme color that is currently set in SharePoint and also its locale. The web app URL can take parameters for theme and locale, but this would require a user to manually change the URL in the Page Viewer web part. What is the best way to grab this information dynamically for my web app?