Beispiel #1
0
		/// <summary>
		/// Adds a accordion into the collection of tabs.  Due to the dependencies between the 
		/// accordion headings and content panes the tabs must be defined up-front
		/// </summary>
		/// <param name="title">Title of the accordion (to appear in the accordion headings)</param>
		/// <param name="active">Flags whether this accordion should be the selected accordion on page load</param>
		/// <returns>Returns Tabs object to maintain chainability</returns>
		public Panels Add(string title, bool active) {
			Panel newPanel = new Panel(this.Accordion.Writer, this.Accordion, title, active);

			this._Panels.Add(newPanel);

			// hold a quick reference point for further configuration
			_CurrentPane = this._Panels.Count() - 1;

			return this;
		}
Beispiel #2
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="panel">Panel the header is for</param>
		public Header(Panel panel) {
			this.OnPanel = panel;
			this.Hyperlink = new Hyperlink(this);
		}
Beispiel #3
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="panel">Panel the header is for</param>
		public Header(Panel panel) {
			this.OnPanel = panel;
		}