SegmentedItem Constructor (Command)
Initializes a new instance of the SegmentedItem
class with the specified command.
Eto (in Eto.dll) Version: 2.5.3-dev
Protected Sub New (
command As Command
command : Command -> SegmentedItem
- Type: Eto.FormsCommand
Command to initialize the menu item with.
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
, which may be appropriate depending
on the current SelectionMode
. For Multiple
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.