When I try to set the LeadingViewPosition of SfTextInputLayout in a ResourceDictionary it throws exception.
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. occurred
It works when set in XAML:
<input:SfTextInputLayout LeadingViewPosition="Inside">
<input:SfTextInputLayout.LeadingView>
...
</input:SfTextInputLayout.LeadingView>
<Entry />
</input:SfTextInputLayout>
In a ResourceDictionary it does not work:
<Style TargetType="input:SfTextInputLayout">
<Setter Property="LeadingViewPosition" Value="Inside" />
<Setter Property="ContainerBackgroundColor" Value="White" />
<Setter Property="ContainerType" Value="Filled" />
<Setter Property="Margin" Value="20, 10" />
<Setter Property="FocusedColor" Value="{StaticResource GreenColor}" />
</Style>