Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Ink;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- namespace _0111014
- {
- public partial class MainPage : UserControl
- {
- public MainPage()
- {
- // 必須將變數初始化
- InitializeComponent();
- Loadvideo();
- }
- public void Loadvideo()
- {
- string strYoutubePath =
- "<object width='650' height='500'><param name='movie' value='http://www.youtube.com/v/5wh4DGklCsg?fs=1&hl=zh_TW'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/5wh4DGklCsg?fs=1&hl=zh_TW' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='650' height='500'></embed></object>";
- this.htmlHost1.SourceHtml = strYoutubePath;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement