Click or drag to resize

SegmentedItem Class

Base class for items of the SegmentedButton control.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract class SegmentedItem : BindableWidget

The SegmentedItem type exposes the following members.

Constructors
  NameDescription
Protected methodSegmentedItem
Initializes a new instance of the SegmentedItem class.
Protected methodSegmentedItem(Command)
Initializes a new instance of the SegmentedItem class with the specified command.
Top
Properties
  NameDescription
Public propertyCommand
Gets or sets the command to invoke when the segmented item is pressed.
Public propertyCommandParameter
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
Public propertyEnabled
Gets or sets a value indicating whether this SegmentedItem is enabled.
Public propertyImage
Gets or sets the image to display in this segment.
Public propertyParent
Gets the parent button this item belongs to.
Public propertySelected
Gets or sets a value indicating whether this SegmentedItem is selected.
Public propertyText
Gets or sets the text to display for this segment.
Public propertyToolTip
Gets or sets the ToolTip to display for this segment
Public propertyVisible
Gets or sets a value indicating whether this SegmentedItem is visible.
Public propertyWidth
Gets or sets the width of this segment, or -1 to auto size.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnClick
Raises the Click event.
Protected methodOnSelectedChanged
Raises the SelectedChanged event.
Top
Events
  NameDescription
Public eventClick
Occurs when this segment is clicked.
Public eventSelectedChanged
Occurs when this Selected property changes.
Top
Operators
Fields
  NameDescription
Public fieldStatic memberClickEvent
Identifier for handlers to attach the Click event.
Public fieldStatic memberSelectedChangedEvent
Identifier for handlers to attach the SelectedChanged event.
Top
See Also