Click or drag to resize

SegmentedItem Constructor (Command)

Initializes a new instance of the SegmentedItem class with the specified command.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
protected SegmentedItem(
	Command command
)

Parameters

command
Type: Eto.FormsCommand
Command to initialize the menu item with.
Remarks
This links the segmented item with the specified command, and will trigger Execute when the user clicks the item, and enable/disable the menu item based on Enabled. This also supports RadioCommand and CheckCommand, which may be appropriate depending on the current SelectionMode. For Multiple, then CheckCommand would be preferred, whereas for Single, RadioCommand would make more sense. Otherwise, use Command if the mode is None. This is not a weak link, so you should not reuse the Command instance for other menu items if you are disposing this segmented item.
See Also