This project is read-only.

ControlType (ElementFlow)

Oct 18, 2008 at 3:04 PM
Hi, first of all GREAT control, well, is there a way i can add a Image if the file that's been added is an image, or a MediaElement if the file that's been added its a video ?

what i'm trying to do is :

to add a Image if the user adds an image, or add an MediaElement if  the user adds a video.
Oct 18, 2008 at 4:55 PM
Prox, from your description it looks like you would need different DataTemplates for each case. Depending on the file-type you can switch between the templates by using a DataTemplateSelector. Since you would be using ElementFlow with an ItemsControl, you can set its ItemTemplateSelector and do the checking over there.
Oct 18, 2008 at 6:53 PM
Thanks, it works great