960628 - Application crashes when setting ItemSpacing and ExpandMode using Global Styling #200
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Bug Description
Application crashes when setting ItemSpacing and ExpandMode using Global Styling in Accordion control.
Root Cause
When setting the API in global styling ,while loading it calls the its API property changed methods first so in that items were not loaded .So items become null then the exception occurs.
Ticket ID
https://support.syncfusion.com/agent/tickets/731608
Task ID
https://dev.azure.com/EssentialStudio/Mobile%20and%20Desktop/_workitems/edit/960628
Is Breaking issue?
No
Solution description
Added the condition if the IsViewLoaded is false then it should return in the propertychanged methods.
Output screenshots
Windows:
AccordionHeader.2025-06-17.10-18-21.mp4
Android:
Android.Emulator.-.pixel_7_-_api_33_5554.2025-06-17.10-17-12.mp4
Mac:
SYNCMACN-46802.local.and.18.more.pages.-.Work.-.Microsoft.Edge.2025-06-16.19-05-52.mp4
iOS:
SYNCMACN-46802.local.and.18.more.pages.-.Work.-.Microsoft.Edge.2025-06-16.19-05-08.mp4
Areas affected and ensured
No areas were affected.
Test cases
Tested all the API in Global Styles,Explicit Styles,Implicit Styles,Constructor ,OnAppearing,App.Xaml and Loaded Event.
Does it have any known issues?
No
MR CheckList