I have custom renderer for a Xamarin Forms Frame :CustomFrameRenderer. A sample Xaml is below
<controls:ExtendedFrame Margin="2,0,2,0"
BackgroundColor="Red"
HorizontalOptions="FillAndExpand"
OutlineColor="Red"
Padding="0,0,0,0">
<Label Text="This is a test"/>
</controls:ExtendedFrame>
The problem is, if I bind the bacground color to a property like this,
<controls:ExtendedFrame Margin="2,0,2,0"
BackgroundColor="{Binding FrameBackground}"
HorizontalOptions="FillAndExpand"
OutlineColor="{Binding FrameBackground}"
Padding="0,0,0,0">
The frame get's it's color updated based on an item selected in a ListView. Now, if I use the standard Frame it works perfectly fine. But I use my custom frame with rounded corners, I get this error in Android.
Java.Lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isMutable()' on a null object reference
Any help is appreciated.