单页中的图像控制和媒体控制 [英] image control and media control in a single page

查看:66
本文介绍了单页中的图像控制和媒体控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我需要在Windows Phone 7的单页中使用图像控制和媒体控制。



i有一个页面,其中包含需要使用播放按钮播放的视频屏幕截图。当点击按钮时,相应的视频应该在那里播放。任何人都建议我如何在一个页面中放置两个控件..



提前致谢



关注

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

推荐答案

将两个控件放在页面上,但将media元素的Visibility属性设置为Collapsed。当用户单击图像控件时,将其设置为折叠,并将media元素显示为可见。这样的事情:



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();


这篇关于单页中的图像控制和媒体控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆