Skip to main content

RibbonBarAppButton

Namespace: Wisej.Web.Ext.RibbonBar

Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)

Represents the main application button in a RibbonBar displayed before the first RibbonBarPage.

public class RibbonBarAppButton : Component

The single instance is created by the RibbonBar and is accessible through the AppButton property. It's hidden by default. When the user clicks the button, the RibbonBar fires the AppButtonClick event.

Properties​

Instance member BackColor​

Color: Returns or sets the background color of the RibbonBarAppButton tab button. (Default: Color [Empty])

Value: The background Color of the button. The default is Empty, which uses the color defined in the theme.

Instance member ForeColor​

Color: Returns or sets the text color of the RibbonBarAppButton tab button. (Default: Color [Empty])

Value: The text Color of the button. The default is Empty, which uses the color defined in the theme.

Instance member Image​

Image: Returns or sets the image that is displayed in the RibbonBarAppButton.

Value: The Image displayed in the RibbonBarAppButton. The default value is null.

Instance member ImageIndex​

Int32: Returns or sets the index value of the image assigned to the RibbonBarAppButton. (Default: -1)

Value: The index value of the Image assigned to the RibbonBarAppButton. The default is -1.

The index refers to an image in the ImageList of the owner RibbonBar.

Throws:

Instance member ImageKey​

String: Returns or sets the name of the image assigned to the RibbonBarAppButton. (Default: "")

Value: The name of the Image assigned to the RibbonBarAppButton.

The key refers to an image in the ImageList of the owner RibbonBar.

Instance member ImageSource​

String: Returns or sets the theme name or URL for the image to display in the RibbonBarAppButton.

Value: The theme name or URL for the image to display in the RibbonBarAppButton.

Example:

Showing the application button with an icon:

this.ribbonBar1.AppButton.ImageSource = "Images/logo.png";
this.ribbonBar1.AppButton.Visible = true;

Instance member Parent​

RibbonBar: Returns the RibbonBar that owns this RibbonBarAppButton.

Instance member RibbonBar​

RibbonBar: Returns the RibbonBar that contains this RibbonBarAppButton.

Instance member Text​

String: Returns or sets the text of the RibbonBarAppButton. (Default: "")

Value: The text displayed in the RibbonBarAppButton.

Instance member ToolTipText​

String: Returns or sets the tooltip text for the RibbonBarAppButton. (Default: "")

Value: The text displayed in a tooltip for the RibbonBarAppButton.

Instance member Visible​

Boolean: Returns or sets whether the RibbonBarAppButton is visible or hidden. (Default: False)

Value: true if the application button is visible; otherwise, false. The default is false.

The application button is hidden by default and the AppButtonClick event is fired only while the button is visible.

Methods​

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member Update()​

Updates the component on the client.

Changing the properties of the button already updates the client. At design time the owner RibbonBar is refreshed as well.

Example:

Forcing the application button to be updated on the client:

this.ribbonBar1.AppButton.Update();

Implements​