When dynamically updating the GradientStops binding of the LinearGradientBrush used in the Frame background, the Frame's corner radius resets to 0, and the border color reverts to its default. This occurs because updating the GradientStops causes the backgroundDrawable to be disposed of and recreated, which leads to the default corner radius and border color being applied, resulting in this issue.
Description of Change
I resolved the issue by reapplying the corner radius and border color after recreating the backgroundDrawable. This ensures that the Frame maintains the correct appearance and functions as expected.
Root Cause of the Issue
Description of Change
I resolved the issue by reapplying the corner radius and border color after recreating the backgroundDrawable. This ensures that the Frame maintains the correct appearance and functions as expected.
Xamarin Reference Link: https://github.com/xamarin/Xamarin.Forms/blob/2f8f4864a4d289dc89a6228e2ca9d6a49993e365/Xamarin.Forms.Platform.Android/FastRenderers/FrameRenderer.cs#L291
Issues Fixed
Fixes #23951
Tested the behaviour in the following platforms
Screenshot