Intersoft WebDesktop Documentation
WebMenuBar Class
Members  Example  See Also  Send Feedback
ISNet.WebUI.WebDesktop Namespace : WebMenuBar Class


Glossary Item Box

WebMenuBar offers a MenuBar control functionality, an integration with PlaceHolderManager and completed with powerful Designer which will help the process of design time in a more convenient way.

Object Model

WebMenuBar Class

Syntax

Visual Basic (Declaration) 
Public Class WebMenuBar 
   Inherits ISNet.WebUI.ISNetControl
   Implements ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.ICustomXmlSerializer, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings, ISNet.WebUI.ITemplateSync, IBarICommandIWebMenuControl 
Visual Basic (Usage)Copy Code
Dim instance As WebMenuBar
C# 
public class WebMenuBar : ISNet.WebUI.ISNetControl, ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.ICustomXmlSerializer, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings, ISNet.WebUI.ITemplateSync, IBarICommandIWebMenuControl  

Remarks

WebMenuBar is designed with a professional architecture and object model as well as specialized user interface for each elements. Therefore, WebMenuBar provides a flexibility to create a Windows-like MenuBar object which is rich in styles, functions and behaviors.

WebMenuBar can be be integrated with PlaceHolderManager. You may perform a dockable MenuBar which commonly found in desktop-based applications. By using PlaceHolderManager architecture, you can freely dock the MenuBar together with WebToolBar with no extensive coding required.

WebMenuBar is also supported with an interactive designer which eases you during design and development time process.

We have five different MenuItem Types of command. They are Normal, Radio, CheckBox, Separator, and Custom.

Example

The following codes show you how to create WebMenuBar's structures programmatically.
C#Copy Code
protected void Page_Load(object sender, EventArgs e)
    {
        body.Style.Add("overflow", "hidden");

        // programmatically create command and items
        MenuCommand cmdFile = new MenuCommand();
        cmdFile.Name = "cmdFile";
        cmdFile.AccessKey = "F";
        cmdFile.Text = "File";

        WebMenuItem itmNew = new WebMenuItem();
        itmNew.Name = "itmNew";
        itmNew.Text = "New";

        WebMenuItem itmNewWindow = new WebMenuItem();
        itmNewWindow.Name = "itmNewWindow";
        itmNewWindow.Text = "New Window";

        WebMenuItem itmNewTab = new WebMenuItem();
        itmNewTab.Name = "itmNewTab";
        itmNewTab.Text = "New Tab";

        WebMenuItem separator = new WebMenuItem();
        separator.Type = MenuItemType.Separator;

        itmNew.Items.Add(itmNewTab);
        cmdFile.Items.Add(itmNew);
        cmdFile.Items.Add(new WebMenuItem("Open"));
        cmdFile.Items.Add(new WebMenuItem("Save", "mnuSave", "../Images/Save.gif"));
        cmdFile.Items.Add(separator);
        cmdFile.Items.Add(new WebMenuItem("Exit", "mnuExit", "", "e"));
        WebMenuBar1.Menus.Add(cmdFile);
    }

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         ISNet.WebUI.ISNetControl
            ISNet.WebUI.WebDesktop.WebMenuBar

Requirements

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

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.