Stylin' XML Demo

This demo illustrates binding an XML file to skmMenu using styles. The code-behind code is the same as in the Simple XML Demo. The styles set here can be set through the Visual Studio .NET designer with just a bit of pointing and clicking. Specifically, the changes made were:

View the XML file bound to the DataGrid, SimpleXML.xml...



Source Code
HTML Portion:
				
<%@ Register TagPrefix="cc1" Namespace="skmMenu" Assembly="skmMenu" %>
<cc1:Menu id="Menu2" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="#E0E0E0"
	Cursor="Pointer" ItemSpacing="0" ItemPadding="5">
	<SelectedMenuItemStyle BackColor="#FFC080"></SelectedMenuItemStyle>
</cc1:Menu>
				
Code-Behind Code:
				
private void Page_Load(object sender, System.EventArgs e)
{
	Menu1.DataSource = Server.MapPath("SimpleXML.xml");
	Menu1.DataBind();
}