Click here to Skip to main content
12,825,515 members (36,881 online)
Rate this:
Please Sign up or sign in to vote.

I have a requirement where i need to use image control and media control in a single page in windows phone 7.

i have a page which has the screenshot of the video that need to play with a play button. when the button is clicked the respective video should play there itself.can anyone suggest me how to place two controls in a single page..

Thanks in advance

Posted 4-Dec-12 21:43pm
Abdullatif M. Abu Al Rub 6-Apr-13 4:48am
i can't see why you are not able to place them together??
you may add them one each other and use the visibility property to control which one appears as Jeff Blankenburg suggested in his solution..
am i missing something here??

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Place both controls on the page, but set the Visibility property of the media element to Collapsed. When the user clicks on the image control, set it to collapsed, and the media element to visible. Something like this:

Image.Visibility = Visibility.Collapsed;
MediaElement.Visibility = Visibility.Visible;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100