解决方案 »
- 如何弹出确认提示??
- 如何解决这个问题?
- form验证的问题,在线等。
- 大家说说哪个在线文本编辑器与ms-word兼容性比较好?
- 熬夜快1点了还没搞出来,郁闷一天的水晶报表打印问题!急急急!!!
- 编译好的.dll文件放在站点外的其它文件夹,而当前站点的asp.net网页可以正常浏览,有没有办法实现?
- 菜鸟求助
- DataNavigateUrlFormatString传值读不出来的问题
- 想问一下回复功能怎么做?
- 急!菜鸟问TreeView控件如何使用?
- 数据源有些行状态为deleted,如何将gridview中的行与数据行对应起来??
- silverlight多图片上传,上传160张后,程序停止,剩余的不继续上传了,求可能原因
1、你将Wildlife.wmv文件移到Silverlight中。
2、你将MediaElement的Source设置为Wildlife.wmv的URL路径。
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White">
<MediaElement Height="120" HorizontalAlignment="Left" Margin="10,10,0,0" Name="mediaElement1" VerticalAlignment="Top" Width="160" Source="D:\Documents\Downloads\02.wmv"
AutoPlay="True"/>
</Grid>
</UserControl>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White">
<MediaElement Height="120" HorizontalAlignment="Left" Margin="10,10,0,0" Name="mediaElement1" VerticalAlignment="Top" Width="160" Source="D:\Documents\Downloads\02.wmv"
AutoPlay="True"/>
</Grid>
</UserControl>
你的*.wmv是在Asp.net程序中的,所以URL应该是你的Asp.net程序的URL加上你的*.wmv
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White">
<MediaElement Height="120" HorizontalAlignment="Left" Margin="10,10,0,0" Name="mediaElement1" VerticalAlignment="Top" Width="160" Source="D:\Documents\Downloads\02.wmv"
AutoPlay="True"/>
</Grid>
</UserControl>
你的*.wmv是在Asp.net程序中的,所以URL应该是你的Asp.net程序的URL加上你的*.wmv
那我这样应该是你说的 正确的方法了么。但页面还是一片空白。 <Grid x:Name="LayoutRoot" Background="White">
<MediaElement Height="120" HorizontalAlignment="Left" Margin="10,10,0,0" Name="mediaElement1" VerticalAlignment="Top" Width="160"
Source="D:\documents\visual studio 2010\Projects\SilverlightApplication3\SilverlightApplication3.Web\02.wmv"
AutoPlay="True"/>
</Grid>