如何使用CSS与Windows 8 WebView控件?(How to use CSS with W

2019-10-17 15:52发布

我有一个窗口的8个应用WebView控件的问题,反正是有使用CSS来管理网页视图的样子,我用它这里查看feeded HTML数据返回的内容,但你可以看到它的所有条纹CSS的,所以有反正,我可以管理网页视图的CSS?

更新过的:这是代码

void ItemListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {


            //  this code to populate the web view
            //  with the content of the selected blog post.
            // I'm passing the selected item from the previous items' page
            // and then pouplate the web view with the selected item Contents of the feed 


            if (this.UsingLogicalPageNavigation()) this.InvalidateVisualState();

            Selector list = sender as Selector;
            FeedItem selectedItem = list.SelectedItem as FeedItem;
            if (selectedItem != null)
            {
                this.contentView.NavigateToString(selectedItem.Contents);
            }
            else
            {
                this.contentView.NavigateToString("");
            }  

        }

Answer 1:

如果您有NavigateToString()导航 - 你可以把你的CSS,你导航到HTML字符串内。 否则 - 它应该只是工作,我们将需要更多的细节为你实际上是在做什么。



文章来源: How to use CSS with Windows 8 Webview Control?