Intersoft WebDesktop Documentation
Styles Inheritance model for Uniform Look and Feel across entire Application.
Send Feedback
Intersoft WebDesktop > Essential Concepts > Styles Inheritance model for Uniform Look and Feel across entire Application.

Glossary Item Box

Introduction

WebDesktop.NET's products are designed with consistent object model and interfaces to make it possible for them to integrate and interact with each other during both designtime and runtime.

At a glance, there are 3 level of style integration which developers can take advantage to design a uniform look and feel in the entire application with minimum efforts.

The root Style begins at WebDesktopManager instance which act as "universal shell" for the rest component members. The WebDesktopManager contains master style definitions such as in the following:

With the global style definition at DesktopManager level, other component members would be able to lookup for the configuration and apply it automatically during runtime.

 

The second level of Style inheritance is managed by PlaceHolderManager instance. PlaceHolderManager represents the container for Bar-based items such as ToolBar, MenuBar and others. It includes the following style definition:

PlaceHolderManager as well as integratable component members exposed IntegratedTo property which determines the integration state of each instance.

The following table shows the integration relations between WebDesktopManager, PlaceHolderManager and applicable component members.

DesktopManager Level PlaceHolderManager Level WebDialogBox Menu System WebMenuBar WebToolBar WebButton
WindowSettings x x x
WindowStyle x x
CommandButtonStyle x x x
MenuStyle x x x x
ToolBarStyle x x
MenuBarStyle x x

Each atomic component such as DialogBox, ContextMenu, ToolBar and Button will seamlessly integrate to DesktopManager (when enabled via IntegratedTo property) at runtime. The style definition in control level does not required and will be ignored.

Workflow Diagram

The previous section has outlined the main concepts of how the style inheritance works between the lowest level of components up to highest level component (WebDesktopManager).  The following illustration provides an in-depth representation of the connection and process of the style integration between each level in real-world application scenarios.

 

The red markup represents a DesktopManager instance. As illustrated in above image, the atomic components such as DialogBox (see "About WebOutlook"), Button, ContextMenu and entire Menu system are applying the styles defined at DesktopManager automatically at runtime.
The blue markup represents a PlaceHolderManager instance. The "Bar"-based items will obtain its styles from its PlaceHolderManager, so that there is no need to specify individual styles at Bar level. For the MenuStyle used in SplitButton or DropDownMenu CommandType, the PlaceHolderManager will determine the appropriate parent based on the Integration mode, such as when integrated to DesktopManager, it will obtain from DesktopManager's Application MenuStyle.

Benefits

© 2012 Intersoft Solutions Corp. All Rights Reserved.