Version

Style Property (UltraDropDownButton)

Returns or sets the display style for the split button control.
Syntax
'Declaration
 
Public Property Style As SplitButtonDisplayStyle
public SplitButtonDisplayStyle Style {get; set;}
Remarks

The Style property is used to determine the display style for the control. When set to SplitButton, which is the default value, two buttons will be displayed. The main button that will display the image and text and will invoke the System.Windows.Forms.Control.Click event when pressed. The secondary button, displayed on the right side of the button and displaying a dropdown arrow, will be used to display the dropdown window (see PopupItem). When set to DropDownButtonOnly only one button element is displayed. This button will display the image and text as well as a dropdown arrow. When pressed, the dropdown window will be displayed.

Example
The following examples demonstrates the use of the Style property to determine how the button will be displayed.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Misc

Private Sub frmUltraDropDownButton_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' The Style property determines how the button is displayed. 
    ' SplitButton is the default and means 2 button sections - 
    ' a standard button and a dropdown button.
    Me.ultraDropDownButton1.Style = SplitButtonDisplayStyle.SplitButton

    ' DropDownButtonOnly means that only one button section is 
    ' displayed - Me section displays a dropdown arrow and 
    ' can be used to display the popup item dropdown
    Me.ultraDropDownButton1.Style = SplitButtonDisplayStyle.DropDownButtonOnly
End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Misc;

private void frmUltraDropDownButton_Load(object sender, System.EventArgs e)
{
	// The Style property determines how the button is displayed. 
	// SplitButton is the default and means 2 button sections - 
	// a standard button and a dropdown button.
	this.ultraDropDownButton1.Style = SplitButtonDisplayStyle.SplitButton;

	// DropDownButtonOnly means that only one button section is 
	// displayed - this section displays a dropdown arrow and 
	// can be used to display the popup item dropdown
	this.ultraDropDownButton1.Style = SplitButtonDisplayStyle.DropDownButtonOnly;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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