| Visual Basic (Declaration) | |
|---|---|
Public Property IntegratedTo As MenuIntegrationMode | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebMenuBar Dim value As MenuIntegrationMode instance.IntegratedTo = value value = instance.IntegratedTo | |
| C# | |
|---|---|
public MenuIntegrationMode IntegratedTo {get; set;} | |
There are 2 integration modes available on WebMenuBar, which are Integration to Desktop Manager and Integration to PlaceHolder Manager.
- Integration to Desktop Manager.
This is the most recommended configuration to create a uniform and consistent look&feel for all menu instances throughout entire applications. When integrated to DesktopManager, the Menu will use Application MenuStyles defined in DesktopManager level. To do this, you simply set the IntegratedTo property to DesktopManager. The menu system will automatically apply the styles at runtime, and hence the integration also means compact output since styles and CSS classes for the menu instance are no longer rendered. - Integration to PlaceHolder Manager.
This scenario is the best applied when you want to have all menu instances inside a WebForm to use one single style definition which is different with DesktopManager's Application MenuStyle. The easiest way to understand this integration mode is by examining how Office 2003 application works. So all menu system in Office 2003 applications are using one single style definition which is separate to Windows menu style. Likewise, all menu systems in Visual Studio 2005 use one single style defined at application level, which differs from Windows menu style.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2