a webbrowser
This commit is contained in:
parent
046f01a6c9
commit
3e8aabc331
@ -6,7 +6,9 @@
|
||||
xmlns:local="clr-namespace:YTPlayer"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="350" Width="525">
|
||||
<Grid>
|
||||
<DockPanel>
|
||||
|
||||
<WebBrowser Name="wbSample"></WebBrowser>
|
||||
</DockPanel>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -23,6 +23,18 @@ namespace YTPlayer
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
wbSample.Navigate("https://www.youtube.com/embed/-yPuWcCykNk?html5=1");
|
||||
//wbSample.Navigate("https://www.youtube.com/html5");
|
||||
|
||||
}
|
||||
|
||||
//private void wbSample_LoadCompleted(object sender, NavigationEventArgs e)
|
||||
//{
|
||||
// dynamic document = wbSample.Document;
|
||||
// dynamic head = document.GetElementsByTagName("head")[0];
|
||||
// dynamic scriptEl = document.CreateElement("script");
|
||||
// scriptEl.text = "swfobject.embedSWF = function(){}";
|
||||
// head.AppendChild(scriptEl);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
@ -37,6 +37,7 @@
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
|
Loading…
Reference in New Issue
Block a user