XAML:<control:SfTextInputLayout LeadingViewPosition="Inside"
Style="{StaticResource InputLayoutStyleWithIcon}"
Hint="Start Date">
<DatePicker Style="{StaticResource DatePickerStyle}"
Date="{Binding Date, Mode=TwoWay}"
>
</DatePicker>
<control:SfTextInputLayout.HintLabelStyle>
<control:LabelStyle FontSize="{StaticResource Smaller}" FontFamily="{StaticResource Montserrat-Regular}" />
</control:SfTextInputLayout.HintLabelStyle>
<control:SfTextInputLayout.ErrorLabelStyle>
<control:LabelStyle FontSize="{StaticResource Smaller}" FontFamily="{StaticResource Montserrat-Regular}" />
</control:SfTextInputLayout.ErrorLabelStyle>
<control:SfTextInputLayout.LeadingView>
<iconize:IconLabel Text="{StaticResource DateIcon}" Style="{StaticResource IconizeIconStyle}" />
</control:SfTextInputLayout.LeadingView>
</control:SfTextInputLayout>
Style:
<Style x:Key="InputLayoutStyleWithIcon" TargetType="inputLayout:SfTextInputLayout" BasedOn="{StaticResource inputLayoutStyle}">
<Setter Property="InputViewPadding" Value="{OnPlatform Android='0', iOS='0,5',UWP='0,5'}" />
<Setter Property="ContainerType" Value="Outlined" />
<Setter Property="OutlineCornerRadius" Value="8" />
<Setter Property="ReserveSpaceForAssistiveLabels" Value="False" />
<Setter Property="FocusedColor" Value="{StaticResource NavigationPrimary}" />
<Setter Property="EnableFloating" Value="True" />
</Style>
OUTPUT:
Any solution aside from adding spaces after the hint text?
Thanks!