Michael Washington has published an example of using
MEF to dynamically load
Silverlight Video Players.
Source: The Code Project
For this article, we have created an application that performs these functions:
- Determines what .xap files (custom video Players) are in the ClientBin directory, and displays them in a dropdown
- Uses MEF to dynamically load the selected custom Video Player
- Provides a shared ViewModel that each custom Video Player will use that:
- Uses web services to determine what Videos are in the Videos directory
- Retrieves the selected Video and plays it