xtd 0.2.0
Loading...
Searching...
No Matches

◆ drop_down_menu() [2/3]

tool_bar_button & xtd::forms::tool_bar_button::drop_down_menu ( const xtd::forms::context_menu value)

Sets the menu to be displayed in the drop-down toolbar button.

Parameters
valueA xtd::forms::context_menu to be displayed in the drop-down toolbar button. The default is std::nullopt.
Returns
This current instance.
Remarks
You can specify a xtd::forms::context_menu to be displayed when the drop-down button is clicked. This property is not used unless the xtd::forms::tool_bar_button::style property value is set to xtd::forms::tool_bar_button_style::drop_down_button.