public TweetView(RectangleF frame, string text, TappedEvent tapped, TappedEvent tapAndHold) : base(frame) { blocks = new List <Block> (); lastRect = RectangleF.Empty; this.text = text; Height = Layout(); Tapped = tapped; TapAndHold = tapAndHold; // Update our Frame size var f = Frame; f.Height = Height; Frame = f; }
public TweetView(RectangleF frame, string text, TappedEvent tapped, TappedEvent tapAndHold) : base(frame) { blocks = new List<Block> (); lastRect = RectangleF.Empty; this.text = text; Height = Layout (); Tapped = tapped; TapAndHold = tapAndHold; // Update our Frame size var f = Frame; f.Height = Height; Frame = f; }
private void TapGestureRecognizer_Tapped(object sender, EventArgs e) { TappedCommand?.Execute(TappedCommandParameter); TappedEvent?.Invoke(this, TappedCommandParameter); }