Exemple #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string copyingSong = "";

            if (NavigationContext.QueryString.TryGetValue("CopyingSong", out copyingSong))
            {
                int mysong = int.Parse(copyingSong);
                settings.CurrSongSetting = mysong;
                DataContext = App.VirtualSongBook.SongList[mysong];
                int    fontsize   = settings.FontSizeSetting / 2;
                string ContText   = strParser(App.VirtualSongBook.SongList[mysong].Content);
                string SiteHeader = "<!DOCTYPE html><head><title>vSongBook On a Window</title><style>html{font-size:" +
                                    fontsize + "px;}</style>";
                ContentText.NavigateToString(SiteHeader + "</head><body><p>" + ContText + "<br>" +
                                             "</p><p><br><br>Via vSongBook</p></body></html>");
            }
        }