jjzjj

HorizontalOptions

全部标签

c# - 如何通过单击标签在 Xamarin.Forms 中调用电话?

你好,我有一个正在使用Xamarin.Forms开发的应用程序,它从Web服务获取联系信息,然后在标签中显示该信息,但是我想制作列出电话号码的标签,以便在单击时调用电话.我该怎么做?在我的XAML中://Thisisthelabelthatdisplaysthephonenumber!下面是我的代码:usingNewtonsoft.Json;usingReadyMo.Data;usingSystem;usingSystem.Collections.Generic;usingSystem.Collections.ObjectModel;usingSystem.Linq;usingSyst

c# - 如何动态地在 xamarin 表单中的标签上创建点击事件

我正在开发跨平台xamarin应用程序,我想为“忘记密码?”创建超链接标签。在登录页面上。我使用以下代码创建标签,但我不知道如何在其上创建onclick事件。MainPage=newContentPage{BackgroundImage="background.png",Content=newStackLayout{VerticalOptions=LayoutOptions.CenterAndExpand,HorizontalOptions=LayoutOptions.CenterAndExpand,Spacing=50,Children={newLabel{HorizontalTex