<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestTreeView.aspx.cs" Inherits="TestTreeView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Test TreeView</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet"/>
   <style type="text/css">
      h2 { background-color: #A6B4DB; width: 15em; padding: 0.5em;}
      .tree { border: solid 1pt #4859A7; width: 15em;}
   </style>
</head>
<body>
   <form id="form1" runat="server">
   <div id="container">
      <h1>Test kontrolki TreeView</h1>
      <p>Przykład pokazuje zastosowanie kontrolki <code>TreeView</code>.</p>

<%--      <h2>Styled Tree</h2>      
--%><%--<asp:TreeView ID="treeMain" runat="server" DataSourceID="siteSource" 
  ImageSet="Custom" NodeIndent="15" 
  CollapseImageUrl="images/iconCollapse.gif" 
  ExpandImageUrl="images/iconExpand.gif"
  NoExpandImageUrl="images/iconPage.gif" >--%>
  <asp:TreeView ID="treeMain" runat="server" DataSourceID="siteSource">
  
    <%--   <NodeStyle NodeSpacing="2" ChildNodesPadding="6"
      HorizontalPadding="4" />
   <RootNodeStyle HorizontalPadding="15" VerticalPadding="5"
     BorderStyle="Solid" BorderWidth="1" BorderColor="#ACB9B9"/>--%>

</asp:TreeView>


      <asp:SiteMapDataSource ID="siteSource" runat="server" 
         ShowStartingNode="true"  />
   </div>
   </form>
</body>
</html>
