Skip to content

SfSegmentedControl - Segment picker highlight not fully applied on right edge if SelectionIndicatorPlacement=SelectionIndicatorPlacement.Border #269

@Martinn2

Description

@Martinn2

Description

Description

The right border of selected item appears cut off or missing

Image Image

My setup

<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.110" />
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="1.0.7" />

Steps to Reproduce

  1. Create new Maui project
  2. Update nugets, install Syncfusion.Maui.Toolkit
  3. Replace MainPage.xaml with this
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:syncfusion="http://schemas.syncfusion.com/maui/toolkit"
    x:Class="MauiSfSegmentedBugDemo.MainPage">

    <ScrollView>
        <VerticalStackLayout>
            <syncfusion:SfSegmentedControl
                x:Name="segControl">
            </syncfusion:SfSegmentedControl>
        </VerticalStackLayout>
    </ScrollView>

</ContentPage>
  1. Replace MainPage.xaml.cs with this
public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
        segControl.VisibleSegmentsCount = 2;
        segControl.SelectionIndicatorSettings.SelectionIndicatorPlacement = SelectionIndicatorPlacement.Border;
        segControl.ItemsSource = new ObservableCollection<SfSegmentItem>()
        {
            new SfSegmentItem { Text = "Day" },
            new SfSegmentItem { Text = "Week" }
        };
    }
}

.NET Version

.NET 9.0

Version with bug

1.0.7

Is this a regression from previous behavior?

Not sure, haven't tested other versions

Last Known Working Version

1.0.6

Affected platforms

Windows, Android

Affected Platform Versions

windows10.0.19041.0, Android 15

Have you found a workaround?

No response

Relevant log output

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions