How to control the font size in segmentedcontrol

1 Answer 195 Views
SegmentedControl
Jax
Top achievements
Rank 1
Jax asked on 03 Aug 2022, 05:42 AM | edited on 03 Aug 2022, 05:49 AM

I want to enlarge the font size in the option, but there is no fontsize attribute in this control. How can I enlarge the font of this option。

The code is as follows:


 <telerikInput:RadSegmentedControl Grid.Row="8" Grid.Column="1" Style="{StaticResource NormalSegmentControl}" ItemsSource="{Binding YesNoList}" SelectedIndex="{Binding CodeIndex, Mode=TwoWay}"/>

 

 

1 Answer, 1 is accepted

Sort by
0
Antoan
Telerik team
answered on 04 Aug 2022, 01:06 PM

Hello Jax,

Thank you for the provided code snippet.

I understand the need to change the font size of the control, however we do not yet have such property. Currently there is no method to go around that issue using the segmented control and I have logged a feature request on your behalf. You can follow and vote for it from the following link:
https://feedback.telerik.com/maui/1575022-segmentedcontrol-implement-a-font-size-property 

However, you can create a custom segment using RadBorder and RadButton where you would be able to use all of the button and border properties including the font size, one of my colleagues has created such a control, you can find it on the following link:
https://github.com/LanceMcCarthy/CustomXamarinDemos/tree/main/src/SegmentedCustomControl 

I hope the provided information helps.

Regards,
Antoan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
SegmentedControl
Asked by
Jax
Top achievements
Rank 1
Answers by
Antoan
Telerik team
Share this question
or