we build an architecture that SharePoint will build the XML for us and
write it on the page and Silverlight grabs the XML from the page and
displays the images on the UI. How nice it is. You can get the first
part i.e. get xml (image) data from the SharePoint libraries
Here, we are discussing about the code we need to place in Page.xaml.cs
file to read xml from web page.
public Page()
{
string controlid = "divImgs"; //You can also use intiparams of Silverlight params to get the id.
InitializeComponent();
string xmlstring = string.Empty;
if (controlid != null)
{
HtmlElement ctl = HtmlPage.Document.GetElementById(controlid);
if (ctl != null)
xmlstring = (string)ctl.GetProperty("innerHTML");
}
if (!string.IsNullOrEmpty(xmlstring))
{
ProcessXML(xmlstring);
}
}
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided b...
-
This article demonstrates the way to work with WPF BorderBrush. The Border control in WPF is used to draw a border along the edges of a c...