Style Property
Description
Gets or sets the style of the button.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Style() As [PushButtonStyle](XtremeCommandBars~Enumerations~PushButtonStyle_EN.md)
Remarks
This will set the style of the button. Using xtpButtonNormal will create a normal button. The xtpButtonNormal and xtpButtonDropDownNoGlyph styles are the typical styles used to create the various types of buttons seen in the backstage view.
xtpButtonDropDownNoGlyph creates a Dropdown button with the appearance of a normal button. The DropDown event will fire when this button is clicked. This is used for Backstage buttons that look like a normal button but display a dropdown. This is also used when you want a dropdown button but want to display your own "arrow" in markup. There is a built-in resource for the 2010 style dropdown that can easily be displayed using Source='res://XTP_IDB_BUTTONDROPDOWNGLYPH'. For example, you could use this for the Caption of the BackstageButton:
"Protect Document"
The DropDown event is used so you can display a popup menu for the button.
If the Style is set to xtpButtonDropDown or xtpButtonDropDownRight, the DropDown event is fired when the button is clicked anywhere on the button.
If the Style is set to xtpButtonSplitDropDown, the DropDown event is only fired when the "arrow" part of the split button is clicked. The Click event will be fired when the "button" part of the split button is clicked.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.