I am porting a Silverlight Library to a WPF Library (SL4, .NET4)... Got all the issues resolved so that I could compile the WPF library without errors. I am now trying to use the WPF library in a WPF application. I add a control from the library in XAML, it compiles just fine and the app launches, but I never see the controls... it is like the templates from the dll are not being used or something. The library has a Generic.xaml that merges all the different control themes together. The controls show just fine in the corresponding Silverlight library and a Silverlight app.Things I have tried:1) In AssemblyInfo.cs, I changed[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]To[assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)]I tried this in both the dll and the Apps AssembyInfo.cs 2) All template controls declare their styles like this:
public Bookmark()
{
#if SILVERLIGHT
this.DefaultStyleKey = typeof(Bookmark);
#endif
}
static Bookmark()
{
#if !SILVERLIGHT
DefaultStyleKeyProperty.OverrideMetadata(typeof(Bookmark), new FrameworkPropertyMetadata(typeof(Bookmark)));
#endif
}
Any ideas? What am I forgetting?... I have been doing the Silverlight for awhile now, but this is my first WPF app. Looking through the ArcGIS Silverlight/WPF toolkit, it is doing what I am trying to, but I can not find anything that I am missing... and the ArcGIS controls show up just fine in the WPF app.Thanks a lot for any help or ideas!