Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Call method on custom renderer?

$
0
0

Hello,

I'd like to call a method on my custom renderer, what do you think is the best way to achieve that?

public class MyLabelRenderer : LabelRenderer
{
    public void DoStuff(){}
}


public class MyLabel : Label
{
    public void DoStuff(){
        // TODO: How to signal the custom renderer to invoke DoStuff() ?
    }
}

Viewing all articles
Browse latest Browse all 77050

Trending Articles