Currently is have this code:
if (caseStudyImages.SelectedIndex < 0)
{
caseStudyImages.SelectedIndex = 0;
}
var item = container.Items[caseStudyImages.SelectedIndex];
subTitle.Text = item.Title.Text;
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(item.NodeValue);
doc.DocumentNode.RemoveChild(doc.DocumentNode.FirstChild);
StringBuilder sb = new StringBuilder();
using (StringWriter writer = new StringWriter(sb))
{
doc.Save(writer);
}
item.NodeValue = doc.ToString();
caseStudyImages.ItemsSource = container.Items;
caseStudyImages is a flipview on the screen that contains an image and a webview item. Container is my syndication feed item. I am trying to remove the first node from the item currently selected, as it is text I do not want, and then display it in the webview. I am binding the webview content the the item.NodeValue in a DataTemplate. My problem is on the line:
item.NodeValue = doc.ToString();
I get an exception throw saying "The method or operation is not implemented". Does anyone have any suggestions?