C# (CSharp) App_Code.Controls WidgetContainer - 2 examples found. These are the top rated real world C# (CSharp) examples of App_Code.Controls.WidgetContainer extracted from open source projects. You can rate examples to help us improve the quality of examples.
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.