Ejemplo n.º 1
0
        void NewsBrowser_Loaded(object sender, RoutedEventArgs e)
        {
            var    resourceLoader = ResourceLoader.GetForCurrentView("Resources");
            string aaa            = resourceLoader.GetString("HTMLContent");

            NewsBrowser.NavigateToString(aaa);
        }
Ejemplo n.º 2
0
        private void NewsGrid_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var news = NewsGrid.FirstSelectedNews;

            var html = "<HTML/>";

            if (news != null && !news.Story.IsEmpty())
            {
                html = "<meta http-equiv=Content-Type content='text/html;charset=UTF-8'>" + news.Story;
            }

            NewsBrowser.NavigateToString(html);
        }