When I try to insert a BoxView with a GradientBackground this exception is thrown. In the c # code I have inserted the Flag, but it is not enough. How could I solve?