DockableContent

Apr 8, 2010 at 6:41 AM

Hi,

I tried to add a contenttemplateselector to a dockablecontent but it is never invoked. What's wrong with that?

Thank you

Apr 10, 2011 at 1:15 AM
Edited Apr 10, 2011 at 1:19 AM

Hi,

I've come across the same problem with DocumentContent a few days ago and found the following workaround (I assume this also works for DockableContent)

    DocumentContent dc = new DocumentContent();
    dc.Content = new ContentControl()
    {
        ContentTemplateSelector = new SomeDataTemplateSelector(),
        Content = someContent
    };