I have dispalyed videosongs in list box.And when i click on a particular videosong it should be navigated to other page and play. My code for playing is
Xaml code:
<StackPanel VerticalAlignment="Top" Height="600" Margin="0,0,0,0">
<TextBlock x:Name="title" TextWrapping="Wrap" VerticalAlignment="Top" Height="40"></TextBlock>
<phone:WebBrowser x:Name="webBrowser" Height="411" IsScriptEnabled="True" Margin="10,0,78,0" />
Xaml.cs:
public Videopage()
{
InitializeComponent();
string video = "<iframe src=";http://www.youtube.com/embed/JJYNDFxtUIg" width="646" height="365" frameborder="0" allowfullscreen></iframe>
this.Navigate.ToString(video);
}
I was coming across error:
Error 1 'videosongs.Videopage' does not contain a definition for 'Navigate' and no extension method 'Navigate' accepting a first argument of type 'videosongs.Videopage' could be found (are you missing a using directive or an assembly reference?)
Anybody please help me. I was trying this app from many days.I have tried in many methods also.Even though i was i was unable to play videos.When the page was navigated blank screen was displaying in the emulator.I was using windows7.1 emulator.
Many thanks in advance.