C# 클래스 App_Code.Controls.WidgetContainer

Themeable class for displaying WidgetBase derived controls.
WidgetContainer is meant to be the themeable parent class of any control that derives from WidgetBase. This way a theme can automatically apply some basic styling to the way widgets are displayed without having to edit each one or edit the WidgetBase class to change the rendered output. Inherited WidgetContainers must contain a control named phWidgetBody. This is the control that the WidgetContainer's child Widget is injected inside of. phWidgetBody just needs to derive from Control to work, leaving flexibility for anyone creating a theme. If phWidgetBody isn't found, an exception isn't thrown, but a warning label is applied to the page.
상속: System.Web.UI.UserControl
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse 1 사용 예제들

공개 메소드들

메소드 설명
DoesThemeWidgetContainerExist ( bool existenceCheck ) : bool

Returns whether the theme contains a widget container file.

GetThemeWidgetContainerFilePath ( bool existenceCheck ) : string

Returns the file path of where a theme's widget container would expect to be located.

GetThemeWidgetContainerVirtualPath ( bool existenceCheck ) : string

Returns the virtual path of where a theme's widget container would expect to be located.

GetWidgetContainer ( App_Code.Controls.WidgetBase widgetControl ) : WidgetContainer

Loads the widget container (either the one located in the theme folder, or the default one if a theme widget container is missing), and adds the Widget to the widget container.

GetWidgetContainer ( App_Code.Controls.WidgetBase widgetControl, bool widgetContainerExists, string widgetContainerVirtualPath ) : WidgetContainer

Loads the widget container (either the one located in the theme folder, or the default one if a theme widget container is missing), and adds the Widget to the widget container.

ProcessLoad ( ) : void

Manually run the Initialization process.

RenderContainer ( ) : void

The container will be processed when invoked, rather than waiting for the Load event to occur.

보호된 메소드들

메소드 설명
OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

OnPreRender ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.PreRender event.

메소드 상세

DoesThemeWidgetContainerExist() 공개 정적인 메소드

Returns whether the theme contains a widget container file.
public static DoesThemeWidgetContainerExist ( bool existenceCheck ) : bool
existenceCheck bool
리턴 bool

GetThemeWidgetContainerFilePath() 공개 정적인 메소드

Returns the file path of where a theme's widget container would expect to be located.
public static GetThemeWidgetContainerFilePath ( bool existenceCheck ) : string
existenceCheck bool
리턴 string

GetThemeWidgetContainerVirtualPath() 공개 정적인 메소드

Returns the virtual path of where a theme's widget container would expect to be located.
public static GetThemeWidgetContainerVirtualPath ( bool existenceCheck ) : string
existenceCheck bool /// When true, the path to the theme folder to check for the WidgetContainer existence /// is returned. When false, the path to the control that will be loaded is returned. /// If it's a Razor theme, the path will be RazorHost instead of the actual theme folder /// name. ///
리턴 string

GetWidgetContainer() 공개 정적인 메소드

Loads the widget container (either the one located in the theme folder, or the default one if a theme widget container is missing), and adds the Widget to the widget container.
public static GetWidgetContainer ( App_Code.Controls.WidgetBase widgetControl ) : WidgetContainer
widgetControl App_Code.Controls.WidgetBase
리턴 WidgetContainer

GetWidgetContainer() 공개 정적인 메소드

Loads the widget container (either the one located in the theme folder, or the default one if a theme widget container is missing), and adds the Widget to the widget container.
public static GetWidgetContainer ( App_Code.Controls.WidgetBase widgetControl, bool widgetContainerExists, string widgetContainerVirtualPath ) : WidgetContainer
widgetControl App_Code.Controls.WidgetBase
widgetContainerExists bool
widgetContainerVirtualPath string
리턴 WidgetContainer

OnLoad() 보호된 메소드

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
리턴 void

OnPreRender() 보호된 메소드

Raises the E:System.Web.UI.Control.PreRender event.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
리턴 void

ProcessLoad() 공개 메소드

Manually run the Initialization process.
public ProcessLoad ( ) : void
리턴 void

RenderContainer() 공개 메소드

The container will be processed when invoked, rather than waiting for the Load event to occur.
public RenderContainer ( ) : void
리턴 void