Sitefinity CMS

Telerik.Framework Send comments on this topic.
IControlPanel Interface
See Also  Members   Example
Telerik.Web Namespace : IControlPanel Interface


Defines members for implementation of a ControlPanel control. 
Namespace: Telerik.Web
Assembly: Telerik.Framework (in Telerik.Framework.dll)

Syntax

Visual Basic (Declaration) 
Public Interface IControlPanel 
Visual Basic (Usage)Copy Code
Dim instance As IControlPanel
C# 
public interface IControlPanel 

Example

The following example provides sample IControlPanel implementation for an abstract class so that other ControlPanel controls could use its functionality relying on it.
C#Copy Code
public abstract class ControlPanelBase : CompositeControl, IControlPanel
{
   
public ControlPanelBase()
   {
   }

   
public ControlPanelBase(string title)
   {
       
this.tlt = title;
   }

   
public virtual string Title
   {
       get
       {
           
return this.tlt;
       }
   }

   
public virtual string Status
   {
       get
       {
           
return this.sts;
       }
   }

   
public virtual ICommandPanel[] CommandPanels
   {
       get
       {
           
if (commandPnls == null)
               commandPnls =
new ICommandPanel[0];
           
return commandPnls;
       }
   }

   
public virtual void Refresh()
   {
       
base.RecreateChildControls();
   }

   
protected string tlt;
   
protected string sts;
   
protected ICommandPanel[] commandPnls;
}
    

Remarks

The IControlPanel interface should be implemented by ControlPanel controls which are used to provide the administration interaction for a Sitefinity module.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also