Unplanned
Last Updated: 02 Jan 2024 13:42 by Jefferson
Jefferson
Created on: 02 Jan 2024 13:42
Category: DateTimePicker
Type: Bug Report
0
Picker: [UWP] Font Size changes for the items in the spinner when scrolling through the date/time and SpinnerStyle is applied

The FontSize of the Spinner ItemStyle changes when scrolling through the date/time and the Date/Time/TimeSpan and DateTime Pickers have SpinnerStyle

 

And the code used:

    <ContentPage.Resources>
        <ResourceDictionary>
            <Style x:Key="PopupSpinnerStyle" TargetType="telerikDataControls:RadSpinner">
                <Setter Property="HeightRequest" Value="220" />
                <Setter Property="ItemLength" Value="44" />
                <Setter Property="Margin" Value="0, 16"/>
                <Setter Property="ItemStyle">
                    <Setter.Value>
                        <Style TargetType="telerikDataControls:SpinnerItemView">
                            <Setter Property="TextColor" Value="LightCoral" />
                        </Style>
                    </Setter.Value>
                </Setter>
                <Setter Property="SelectedItemStyle">
                    <Setter.Value>
                        <Style TargetType="telerikDataControls:SpinnerItemView">
                            <Setter Property="TextColor" Value="Black" />
                            <Setter Property="FontAttributes" Value="Bold" />
                        </Style>
                    </Setter.Value>
                </Setter>
            </Style>

        </ResourceDictionary>
    </ContentPage.Resources>
    <StackLayout>
        <telerikInput:RadTimePicker SpinnerStyle="{StaticResource PopupSpinnerStyle}"/>
    </StackLayout>

0 comments