Hi Quentin Ruffier des Aimes,
Greetings from Syncfusion.
We have analyzed your query and we would like to let you know that we can achieve your requirement using the SegmentedControl SelectionChanged event to get the current selected SegmentItem value using the Index as per in the below code snippet
XAML:
|
<buttons:SfSegmentedControl SelectionChanged="SegmentedControl_SelectionChanged" >
…..
</buttons:SfSegmentedControl> |
C#:
|
private void SegmentedControl_SelectionChanged(object sender,
Syncfusion.XForms.Buttons.SelectionChangedEventArgs e)
{
var segment = sender as SfSegmentedControl;
var items = segment.ItemsSource as IList;
if(items != null && items.Count > 0)
{
//Here you can get the selected SegmentItem using the Index
var SelectedItem = items[e.Index];
}
} |
Hope the above solution helps to achieve your requirement.
Please let us know if you need any further assistance on this.
Regards,
Devakumar D