HyperlinkButton in C# XAMARIN.FORMS

后端 未结 7 1502
南方客
南方客 2021-02-19 02:36

I want to create Label with click possibility like in WIN phone xaml


Is there a possibili

7条回答
  •  星月不相逢
    2021-02-19 03:14

    I'd take a much more standard approach and use a Button. Just set the background to match your app background and remove the border. Then there's no need for extra TapGestureRecongniser code. (Pseudo Code below:)

    Xaml:

    Code-Behind:

    void OnButtonClicked(object sender, EventArgs args)
    {
        //Open your link in here
    }
    

提交回复
热议问题