I want to create Label with click possibility like in WIN phone xaml
Is there a possibili
I would suggest using GestureRecognizers
and adding a Tap Gesture
to a label. Ref: here
var label = new Label()
{
Text="My Hyperlink"
};
var tapGestureRecognizer = new TapGestureRecognizer();
tapGestureRecognizer.Tapped += (s, e) => {
// handle the tap
};
label.GestureRecognizers.Add(tapGestureRecognizer);
GestureRecognizer
is a public property on the View
class which Label
inherits from. See here