using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Telerik.WebControls; 

namespace MinimizeZones
{
  public partial class _Default : System.Web.UI.Page
  {
protected void Page_Load(object sender, EventArgs e)
{
  const int WinHeight = 100;
  const int WinWidth = 180; 

  RadWindowManager1.Skin = "Mac"; 
  for (int i = 0; i < 4; i++)
  {
    RadWindow window = new RadWindow();
    window.NavigateUrl = "WebForm1.aspx";
    window.Title = "Window" + i.ToString();
    window.Width = WinWidth + 10;
    window.Height = WinHeight;
    window.Top = 10 + (i * (WinHeight / 2));
    window.Left = WinWidth + (i * (WinWidth / 2));
    window.VisibleOnPageLoad = true;
    window.VisibleStatusbar = false; 
    window.MinimizeMode = RadWindowMinimizeModes.MinimizeZone;
    window.MinimizeZoneId = "pnlMinimize";     

    RadWindowManager1.Windows.Add(window); 
  }
}
  }
}
