Represents a button control that can display a dropdown window.
The following sample demonstrates initializing the PopupItem property of the UltraDropDown button.
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 PopupItem property may be set to any object that implements the IPopupItem
'interface. Currently that includes the UltraPopupControlContainer component
'and several tools from the UltraToolbarsManager include PopupMenuTool,
'PopupControlContainerTool, and PopupColorPickerTool
'
' initialize the PopupItem to the object
' that will provide the dropdown window
Me.ultraDropDownButton1.PopupItem = Me.ultraPopupControlContainer1
'The following UltraToolbarsManager tools also implement
'the IPopupItem interface and may be used to provide the
'dropdown window for an UltraDropDownButton control.
'
'Dim popupMenu As Infragistics.Win.UltraWinToolbars.PopupMenuTool
'popupMenu = CType(Me.UltraToolbarsManager1.Tools("PopupMenuTool1"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
'Me.ultraDropDownButton1.PopupItem = popupMenu
'Dim popupContainer As Infragistics.Win.UltraWinToolbars.PopupControlContainerTool
'popupContainer = CType(Me.UltraToolbarsManager1.Tools("PopupControlContainerTool1"), Infragistics.Win.UltraWinToolbars.PopupControlContainerTool)
'Me.ultraDropDownButton1.PopupItem = popupContainer
'Dim popupColor As Infragistics.Win.UltraWinToolbars.PopupColorPickerTool
'popupColor = CType(Me.UltraToolbarsManager1.Tools("PopupColorPickerTool1"), Infragistics.Win.UltraWinToolbars.PopupColorPickerTool)
'Me.ultraDropDownButton1.PopupItem = popupColor
End Sub
'Declaration
Public Class UltraDropDownButton
Inherits UltraButtonBase
Implements Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IImageListProvider, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement, Infragistics.Win.Touch.ISupportTouchMetrics, Infragistics.Win.UIAutomation.IProvideUIAutomation
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Misc;
private void frmUltraDropDownButton_Load(object sender, System.EventArgs e)
{
//The PopupItem property may be set to any object that implements the IPopupItem
//interface. Currently that includes the UltraPopupControlContainer component
//and several tools from the UltraToolbarsManager include PopupMenuTool,
//PopupControlContainerTool, and PopupColorPickerTool
//
// initialize the PopupItem to the object
// that will provide the dropdown window
this.ultraDropDownButton1.PopupItem = this.ultraPopupControlContainer1;
//The following UltraToolbarsManager tools also implement
//the IPopupItem interface and may be used to provide the
//dropdown window for an UltraDropDownButton control.
//
//Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenu;
//popupMenu = this.UltraToolbarsManager1.Tools["PopupMenuTool1"] as Infragistics.Win.UltraWinToolbars.PopupMenuTool;
//this.ultraDropDownButton1.PopupItem = popupMenu;
//
//Infragistics.Win.UltraWinToolbars.PopupControlContainerTool popupContainer;
//popupContainer = this.UltraToolbarsManager1.Tools["PopupControlContainerTool1"] as Infragistics.Win.UltraWinToolbars.PopupControlContainerTool;
//this.ultraDropDownButton1.PopupItem = popupContainer;
//
//Infragistics.Win.UltraWinToolbars.PopupColorPickerTool popupColor;
//popupColor = this.UltraToolbarsManager1.Tools["PopupColorPickerTool1"] as Infragistics.Win.UltraWinToolbars.PopupColorPickerTool;
//this.ultraDropDownButton1.PopupItem = popupColor;
}
'Declaration
Public Class UltraDropDownButton
Inherits UltraButtonBase
Implements Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IImageListProvider, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement, Infragistics.Win.Touch.ISupportTouchMetrics, Infragistics.Win.UIAutomation.IProvideUIAutomation
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