I am trying to create an ResourceFile Called DataTemplate.xaml in an external dll and use that in a WP7 page. When I do the following in the header of my Page I get an erro
I've managed to get this to work using the following steps:
Added the following XAML to the new XAML file:
In WP7ExternalResourcesTest, opened App.xaml and changed the Application.Resources section to the following:
Foreground="{StaticResource ForegroundBrush}" to the TextBlock named "PageTitle".TextBlock correctly displayed the words "page name" in red.Hope this helps.