How do I extend a WPF application using an addin-like architeture?
        Posted  
        
            by Thiado de Arruda
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Thiado de Arruda
        
        
        
        Published on 2010-05-13T18:46:44Z
        Indexed on 
            2010/05/13
            19:04 UTC
        
        
        Read the original article
        Hit count: 293
        
Lets say I have a WPF application that shows a ListBox with an ArrayList -populated with objects of arbitrary types- as a source, and this application is hosted in an assembly 'A'. By default the ListBox will display the custom object 'ToString' method return value. If a data template for that object type is found, the ListBox will use it for rendering. Imagine that theres another assembly 'B' that references of 'A' and seeks to extend it by providing custom data templates for certain types, to be used in that ListBox. Is there some way to do that without 'A'being aware of B?
© Stack Overflow or respective owner