SegmentedControl
SegmentedControl copied to clipboard
Setting TextColor to be different than TintColor
trafficstars
Hello All: I have a user request to make the expanded view text a different color than TintColor Property. Here is my xaml code:
I want the text to be black. SegmentedControlOption has no TextColor on it.
<exp:ExpandableView.SecondaryViewTemplate>
<DataTemplate>
<StackLayout VerticalOptions="StartAndExpand" >
<segmented:SegmentedControl HeightRequest="54" FontSize="Micro" Margin="5,15,5,15"
TintColor="{x:Static const:Colors.ClientFacingColor}"
SelectedSegment="{Binding Answer, Mode=TwoWay}"
SegmentSelectedCommand="{Binding Path=BindingContext.SelectAnswerCommand, 

Source={x:Reference mainStack}}"
SegmentSelectedCommandParameter="{Binding}">
<segmented:SegmentedControl.Children>
<segmented:SegmentedControlOption Text="{x:Static localRes:AppResources.Disagree}" />
<segmented:SegmentedControlOption Text="{x:Static localRes:AppResources.Uncertain}" />
<segmented:SegmentedControlOption Text="{x:Static localRes:AppResources.Agree}" />
<segmented:SegmentedControlOption Text="{x:Static localRes:AppResources.StronglyAgree}" />
</segmented:SegmentedControl.Children>
</segmented:SegmentedControl>
</StackLayout>
</DataTemplate>
</exp:ExpandableView.SecondaryViewTemplate>
here is the visual this draws:

That is also planned.
So I may inform my group when can I expect that feature ? I will be glad to aid in testing or development. And I do thank you for your efforts.