SegmentedControl icon indicating copy to clipboard operation
SegmentedControl copied to clipboard

Setting TextColor to be different than TintColor

Open BicycleMark opened this issue 6 years ago • 2 comments
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, &#xA;
                                                            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:

image

BicycleMark avatar Sep 23 '19 16:09 BicycleMark

That is also planned.

alexrainman avatar Sep 23 '19 18:09 alexrainman

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.

BicycleMark avatar Sep 23 '19 18:09 BicycleMark