a webbrowser
This commit is contained in:
parent
046f01a6c9
commit
3e8aabc331
@ -6,7 +6,9 @@
|
|||||||
xmlns:local="clr-namespace:YTPlayer"
|
xmlns:local="clr-namespace:YTPlayer"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="MainWindow" Height="350" Width="525">
|
Title="MainWindow" Height="350" Width="525">
|
||||||
<Grid>
|
<DockPanel>
|
||||||
|
|
||||||
</Grid>
|
<WebBrowser Name="wbSample"></WebBrowser>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -23,6 +23,18 @@ namespace YTPlayer
|
|||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
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>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
Loading…
Reference in New Issue
Block a user