Unplanned
Last Updated: 14 Oct 2024 10:24 by ADMIN
Giuliano
Created on: 06 Dec 2023 12:58
Category: DatePicker
Type: Bug Report
1
Picker: Numbers are too big for the date and time pickers when increasing the system font size

When increasing the system font size to a larger vale, the numbers in the date and time picker are too big but the height of the items do not change. 

 

 

 

1 comment
ADMIN
Didi
Posted on: 14 Oct 2024 10:24

Workaround: 

In order to stop auto scaling the font for display label and placeholder label use the following approach:

    <ContentPage.Resources>
        <ResourceDictionary>
            <Style TargetType="Label" x:Key="style">
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="FontAutoScalingEnabled" Value="False"/>
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>
    <VerticalStackLayout>
        <telerik:RadDatePicker Placeholder="select date!!!" 
                               x:Name="picker"
                               PlaceholderLabelStyle="{StaticResource style}" />
    </VerticalStackLayout>

Regards,
Didi
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.