Table of Contents

Class SegmentChangedEventArgs

Namespace
Nova.Avalonia.UI.Controls
Assembly
Nova.Avalonia.UI.dll

Provides data for the SegmentChanged event.

public class SegmentChangedEventArgs : EventArgs
Inheritance
SegmentChangedEventArgs
Inherited Members

Constructors

SegmentChangedEventArgs(int, int, SegmentedSliderSegment?)

Initializes a new instance of the SegmentChangedEventArgs class.

public SegmentChangedEventArgs(int oldIndex, int newIndex, SegmentedSliderSegment? segment)

Parameters

oldIndex int

The previously active segment index.

newIndex int

The newly active segment index.

segment SegmentedSliderSegment

The newly active segment, or null when the slider uses generated equal segments.

Properties

NewIndex

Gets the newly active segment index.

public int NewIndex { get; }

Property Value

int

OldIndex

Gets the previously active segment index.

public int OldIndex { get; }

Property Value

int

Segment

Gets the newly active segment, or null when the slider uses generated equal segments.

public SegmentedSliderSegment? Segment { get; }

Property Value

SegmentedSliderSegment