In my Xamarin Forms project, datepicker UI is breaking and it is showing on top of the splash screen background like below:
Code:
<DatePicker
x:Name="date_picker"
PropertyChanged="DateValue"
Style="{StaticResource DatePickerStyle}"/>
Style:
<Style x:Key="DatePickerStyle" TargetType="DatePicker">
<Setter Property="TextColor" Value="Black"/>
<Setter Property="BackgroundColor" Value="White"/>
<Setter Property="Format" Value="MM/dd/yyyy"/>
<Setter Property="HorizontalOptions" Value="Start" />
<Setter Property="VerticalOptions" Value="Center"/>
</Style>
I am facing this issue after updating the Xamarin form version to 5.0.0.2515.
Is this a known issue? Please suggest a solution.
Update-20220824
I tested the same feature on a new project. I have updated the Xamarin forms version to 5.0.0.2515 and added the date picker on that project. The date picker feature is working fine on the new project. The issue is only on our existing project. So is this happening because of any other package?
