How to play Media files in Region Of prism?

Topics: Prism v4 - WPF 4
Oct 4, 2011 at 6:18 AM


I am working on multimedia I can import 3d files and play on a region of Prism. But i can't play viedios files i know this is should not be done in DI.

Is there's an alternative for me?

E.G. I have multiple moduls that each contain modules has many viedios files.

How to accomplish this task?

Oct 4, 2011 at 6:55 PM


The region mechanism included in Prism provides a method to compose the user interface of an application so, as far as I know, it is not meant to support the "raw" injection of a video inside a region.

However, if you have a control that can reproduce a video, you could add that control to a view and then inject the view in the region. Based on my understanding, the implementations details of how to load and reproduce the video should be handled by the control you use to reproduce the video while the prism library should only handle the UI composition (this is, adding the view containing the control to the region).

For example, you could use this control or something similar:

I hope you find this useful,

Damian Cherubini

Oct 7, 2011 at 8:10 AM


Thanks, I was solved and you was right.