BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
MessageInfoModel.cs
public class MessageInfo : INotifyPropertyChanged
{
public Command<object> SampleCommand { get; }
public MessageInfo()
{
SampleCommand = new Command<object>(OnGridTapped);
}
private void OnGridTapped(object obj)
{
var param = obj as MessageInfo;
App.Current.MainPage.DisplayAlert("Message","Tapped Item :"+param.Text,"Ok");
}
}
IncomingTextTemplate.xaml
<ViewCell >
<Grid ColumnSpacing="2" x:Name="Grid">
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Source={x:ReferenceGrid}, Path=BindingContext.SampleCommand}" CommandParameter="{Binding Source={x:Reference Grid}, Path=BindingContext}"/>
</Grid.GestureRecognizers>
</ViewCell >
|