文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 高等教育 > 工学 > 稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton
侵权投诉

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

<StackPanel HorizontalAlignment="Center"> <!-- Source - 视频路径 AutoPlay - 是否自动播放

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

-->

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

<MediaElement x:Name="mediaElement" Height="250" AutoPlay="False" Source="/Silverlight20;component/Video/Demo.wmv"/> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

<ToggleButton x:Name="play" Content="播放" Margin="5" Click="play_Click"/> <ToggleButton x:Name="mute" Content="静音" Margin="5" Click="mute_Click"/> </StackPanel>

</StackPanel>

</UserControl>

MediaElement.xaml.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Windows.Shapes;

namespace Silverlight20.Control

{

publicpartialclass MediaElement : UserControl

{

public MediaElement()

{

InitializeComponent();

}

void play_Click(object sender, RoutedEventArgs e)

{

var tb = sender as System.Windows.Controls.Primitives.ToggleButton;

上一页第3页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email