Some settings ignored

I'm trying to customize the appearance of my segmented control and two settings don't seem to be working for me.

SegmentBackgroundColor doesn't seem to work at all, no matter what I set it to, I get white background.
FontColor works when I set it to something other than Black. When I set it to Black, I get Blue.

    <Style TargetType="buttons:SfSegmentedControl">
      <Setter Property="CornerRadius" Value="15" />
      <Setter Property="SegmentHeight" Value="50" />
      <Setter Property="SegmentPadding" Value="0" />
      <Setter Property="BorderColor" Value="Black" />
      <Setter Property="SegmentBorderColor" Value="{Static app:ThemeColors.navColor}" />
      <Setter Property="BorderThickness" Value="0" />
      <Setter Property="DisplayMode" Value="Text" />
      <Setter Property="VerticalOptions" Value="Center" />
      <Setter Property="HorizontalOptions" Value="Center" />
      <Setter Property="FontColor" Value="Black"/><!-- I get blue instead -->
      <Setter Property="SelectionTextColor" Value="White"/>
      <Setter Property="BackgroundColor" Value="Black"/>
      <Setter Property="Color" Value="Black"/>
      <Setter Property="SegmentBackgroundColor" Value="Black"/><!--ignored for some reason-->
      <Setter Property="SelectionIndicatorSettings">
        <buttons:SelectionIndicatorSettings Color="{Static app:ThemeColors.navColor}"/>
      </Setter>
    </Style>
image

1 Reply

PA Paul Anderson S Syncfusion Team September 17, 2018 08:37 AM UTC

Hi Art Sherwood, 
 
Greetings from Syncfusion. 
 
We have checked the reported issue with SfSegmentedControl as per your code snippet and we got the expected output in Android and iOS platforms. We got the color as Black when SegmentedBackgroundColor to any other color in UWP platform. Also, FontColor works as expected in all the platforms. We have prepared a sample as per your code and please have it from the below link. 
 
 
Please let us know in which platform you have been facing the issue and the output you have got from our sample. Also share your output screenshot to be achieved with details which will be helpful for us to provide you a solution at the earliest. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon