Hi Team,
i'am migrating a xamarin app to maui and face a strange problem with the SfTextInputLayout.
In one page it's working perfectly but in another complexer page there occurs an argument exception [1].
I can not post the complete source but here ist the principle structure of the page
<ContentPage>
<ScrollView VerticalScrollBarVisibility="Never">
<Grid RowDefinitions="Auto,*,Auto">
<!-- 0-HEADER -->
<Frame Grid.Row="0">
</Frame>
<!-- 1-CONTENT -->
<Frame Grid.Row="1" VerticalOptions="FillAndExpand"
<StackLayout VerticalOptions="StartAndExpand" Padding="5" Spacing="10">
<Frame>
</Frame>
<Frame>
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal">
</StackLayout>
<StackLayout Orientation="Horizontal">
<!-- inputLayout crashing app, use entry as workaround -->
<inputLayout:SfTextInputLayout Hint="hint" HelperText="helptext" LeadingViewPosition="Inside">
<inputLayout:SfTextInputLayout.LeadingView>
<Image Source="home.png" HeightRequest="32" WidthRequest="32" />
</inputLayout:SfTextInputLayout.LeadingView>
</inputLayout:SfTextInputLayout>
[...]
maybe there is already a bugfix in the next release?
greetings Andrew
---
[1] Maui App Android Platform
Exception = "Java.Lang.IllegalArgumentException: Layout: -84 < 0"
relevant android Source:
https://cs.android.com/android/_/android/platform/frameworks/base/+/b2d8eb58a29c331c23c57712af936a670cb61b33:core/java/android/text/Layout.java;l=253;drc=7ad499d00716f45fffdf7331493ed21d1b8d9b77