Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
 }