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);
}
}
Monday, March 22, 2010
-
In object-oriented languages the term "interface" is often used to define an abstract type that contains no data but exposes behav...
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
In this section, you will learn about the action method of controller class. All the public methods of a Controller class are called Act...