private View DC2Map(EbMobileDataColumn dc, object value) { EbListViewButton mapbtn = new EbListViewButton(dc); mapbtn.Clicked += async(sender, args) => { if (value == null) { Utils.Toast("location info empty"); return; } await NativeLauncher.OpenMapAsync(value?.ToString()); }; return(mapbtn); }
private View DC2PhoneNumber(EbMobileDataColumn dc, object value) { EbXLabel label = new EbXLabel(dc) { Text = dc.GetContent(value) }; label.SetFont(dc.Font, this.IsHeader); label.SetTextWrap(dc.TextWrap); TapGestureRecognizer gesture = new TapGestureRecognizer(); gesture.Tapped += (sender, args) => NativeLauncher.OpenDialerAsync(label.Text); label.GestureRecognizers.Add(gesture); return(label); }
private View DC2Email(EbMobileDataColumn dc, object value) { EbXLabel label = new EbXLabel(dc) { Text = dc.GetContent(value) }; label.SetFont(dc.Font, this.IsHeader); label.SetTextWrap(dc.TextWrap); TapGestureRecognizer gesture = new TapGestureRecognizer(); gesture.Tapped += async(sender, args) => await NativeLauncher.OpenEmailAsync(value?.ToString()); label.GestureRecognizers.Add(gesture); return(label); }