Class ControlPanelBase
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Inheritance
Namespace: DotNetNuke.UI.ControlPanels
Assembly: DotNetNuke.dll
Syntax
public class ControlPanelBase : UserControl
Properties
| Improve this Doc View SourceIncludeInControlHierarchy
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
public virtual bool IncludeInControlHierarchy { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsDockable
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
public virtual bool IsDockable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVisible
Gets a value indicating whether the ControlPanel is Visible.
Declaration
protected bool IsVisible { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LocalResourceFile
Gets or sets the Local ResourceFile for the Control Panel.
Declaration
public string LocalResourceFile { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A String. |
PortalSettings
Gets the current Portal Settings.
Declaration
protected PortalSettings PortalSettings { get; }
Property Value
| Type | Description |
|---|---|
| PortalSettings |
UserMode
Gets the User mode of the Control Panel.
Declaration
protected PortalSettings.Mode UserMode { get; }
Property Value
| Type | Description |
|---|---|
| PortalSettings.Mode | A Boolean. |
Methods
| Improve this Doc View SourceAddExistingModule(Int32, Int32, String, Int32, String)
Adds an Existing Module to a Pane.
Declaration
protected void AddExistingModule(int moduleId, int tabId, string paneName, int position, string align)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | moduleId | The Id of the existing module. |
| System.Int32 | tabId | The id of the tab. |
| System.String | paneName | The pane to add the module to. |
| System.Int32 | position | The relative position within the pane for the module. |
| System.String | align | The alignment for the Module. |
AddNewModule(String, Int32, String, Int32, ControlPanelBase.ViewPermissionType, String)
Adds a New Module to a Pane.
Declaration
protected void AddNewModule(string title, int desktopModuleId, string paneName, int position, ControlPanelBase.ViewPermissionType permissionType, string align)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | The Title for the resulting module. |
| System.Int32 | desktopModuleId | The Id of the DesktopModule. |
| System.String | paneName | The pane to add the module to. |
| System.Int32 | position | The relative position within the pane for the module. |
| ControlPanelBase.ViewPermissionType | permissionType | The View Permission Type for the Module. |
| System.String | align | The alignment for the Module. |
BuildURL(Int32, String)
Builds a URL to a page with a module matching the given definition friendlyName.
Declaration
protected string BuildURL(int portalID, string friendlyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalID | The ID of the portal. |
| System.String | friendlyName | The friendly name of the Module. |
Returns
| Type | Description |
|---|---|
| System.String | A formatted URL. |
GetModulePermission(Int32, String)
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
protected bool GetModulePermission(int portalID, string friendlyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalID | |
| System.String | friendlyName |
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsModuleAdmin()
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
protected bool IsModuleAdmin()
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsPageAdmin()
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
protected bool IsPageAdmin()
Returns
| Type | Description |
|---|---|
| System.Boolean |
OnInit(EventArgs)
The ControlPanel class defines a custom base class inherited by all ControlPanel controls.
Declaration
protected override void OnInit(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
SetUserMode(String)
Sets the UserMode.
Declaration
protected void SetUserMode(string userMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userMode | The userMode to set. |
SetVisibleMode(Boolean)
Sets the current Visible Mode.
Declaration
protected void SetVisibleMode(bool isVisible)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isVisible | A flag indicating whether the Control Panel should be visible. |