When are Layers loaded in BoxViewRenderer

LippelLippel DEMember ✭✭

Hi,

I have a BoxView renderer.
I want to add a Sublayer to the UIView of the renderer.
I also want to remove every other layer from the UIView.

I tried this in OnElementChanged and OnElementPropertyChanged:
for (int i = 0; i < Layer.Sublayers?.Length; i++)
{
Layer.Sublayers[i].RemoveFromSuperLayer();
}

sadly the Sublayers are not added to the Layer at this point.
Is there a method to override, where I should perform this action?

Sign In or Register to comment.