- Home
- Forum
- Xamarin.Forms
- SfExpander Unhandled Exception
SfExpander Unhandled Exception
I'm using this XAML code from Syncfusion Document:
<SfExpander>
<SfExpander.Header>
<Label TextColor="#495F6E" Text="Veg Pizza" VerticalTextAlignment="Center" />
</SfExpander.Header>
<SfExpander.Content>
<Grid Padding="10,10,10,10" BackgroundColor="#FFFFFF">
<Label TextColor="#303030" Text="Veg pizza is prepared with the items that meet vegetarian standards by not including any meat or animal tissue products." HeightRequest="50" VerticalTextAlignment="Center"/>
</Grid>
</SfExpander.Content>
</SfExpander>
I dont know what's wrong with it but it's alway crash
SIGN IN To post a reply.
3 Replies
JN
Jayaleshwari N
Syncfusion Team
February 12, 2020 09:53 AM UTC
Hi Kien,
Thank you for using Syncfusion Products.
We have checked the reported query from our side. We suspect you are reporting the crash in below bug report,
If yes, we would like to inform that above is the framework issue in latest Xamarin Version while loading Label directly inside Expander’s Header/Content and you can follow below bug for further updates from Xamarin team.
Meanwhile, we suggest you to can overcome the reported issue in sample by loading Label inside Grid. We have updated the sample with workaround, please find them for your reference.
|
Actual Code |
Expected Code |
|
<expander:SfExpander x:Name="Expander" IsExpanded="False">
<expander:SfExpander.Header>
<Label Text="Veg-Pizza"
TextColor="Black"
FontSize="Large"/>
</expander:SfExpander.Header>
</expander:SfExpander> |
<expander:SfExpander x:Name="Expander" IsExpanded="False">
<expander:SfExpander.Header>
<Grid>
<Label Text="Veg-Pizza"
TextColor="Black"
FontSize="Large"/>
</Grid>
</expander:SfExpander.Header>
</expander:SfExpander> |
We have already logged UG task to update our documentation. It will be published end of this month. If you still facing any issues kindly share more details on exception or revert us back with the issue replicated sample in order to analyze and provide better solution at our end.
Regards,
Jayaleshwari N
KI
Kien.Phat
February 12, 2020 10:14 AM UTC
Thank for your support, put Label into Grid solved everything !
JN
Jayaleshwari N
Syncfusion Team
February 13, 2020 06:37 AM UTC
Hi Kien
Thanks for the update.
We are glad that the given solution resolved your issue at your end. Please let us know if you would require further assistance.
Regards,
Jayaleshwari N.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
KI Kien.Phat
- Feb 12, 2020 07:42 AM UTC
- Feb 13, 2020 06:37 AM UTC