I added a reference modifier to all controls with at least 1 builder.
Only IndicatorView doesn't have that modifier because the reference is part of the mandatory parameter of its builder.
Also couldn't use inheritance with this: WidgetBuilder<'msg, #IElement> because I need to enforce the appropriate type of ViewRef.
E.g. IButton => ViewRef<Xamarin.Forms.Button>; ILabel => ViewRef<Xamarin.Forms.Label>;
I added a
reference
modifier to all controls with at least 1 builder. Only IndicatorView doesn't have that modifier because the reference is part of the mandatory parameter of its builder.Also couldn't use inheritance with
this: WidgetBuilder<'msg, #IElement>
because I need to enforce the appropriate type of ViewRef. E.g.IButton
=>ViewRef<Xamarin.Forms.Button>
;ILabel
=>ViewRef<Xamarin.Forms.Label>
;