public SeeMore() { InitializeComponent(); var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { ClickedItemCommand?.Execute(false); }; MainContainer.GestureRecognizers.Add(tapGestureRecognizer); }
public MenuOption() { InitializeComponent(); var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { ClickedItemCommand?.Execute(new Unit()); }; MainContainer.GestureRecognizers.Add(tapGestureRecognizer); }
public ChildProfileImage() { InitializeComponent(); var ProfiletapGestureRecognizer = new TapGestureRecognizer(); ProfiletapGestureRecognizer.Tapped += (s, e) => { ClickedItemCommand?.Execute(ProfileId); }; MainContainer.GestureRecognizers.Add(ProfiletapGestureRecognizer); var BadgeTapGestureRecognizer = new TapGestureRecognizer(); BadgeTapGestureRecognizer.Tapped += (s, e) => { BadgeCommand?.Execute(false); }; BadgeLabel.GestureRecognizers.Add(BadgeTapGestureRecognizer); }