Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# XAML Windows-Phone-7
Hi

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

Regards
Posted 4-Dec-12 21:43pm
Comments
Abdullatif M. Abu Al Rub at 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
good
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;
MediaElement.Play();
  Permalink  

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

  Print Answers RSS
0 Sascha Lefévre 490
1 Sergey Alexandrovich Kryukov 353
2 Maciej Los 210
3 Abhinav S 205
4 Richard Deeming 180
0 Sergey Alexandrovich Kryukov 6,928
1 OriginalGriff 6,381
2 Maciej Los 2,782
3 Abhinav S 2,732
4 Peter Leow 2,694


Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2015
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