Exemplo n.º 1
0
        internal CommentAdornment(CommentTag commentTag, Action onClick)
        {
            _onClick = onClick;
            _rect    = new Rectangle
            {
                Stroke          = Brushes.Black,
                StrokeThickness = 1,
                Width           = 20,
                Height          = 10
            };

            Update(commentTag);
            Content = _rect;
        }
Exemplo n.º 2
0
        internal CommentAdornment(CommentTag commentTag,Action onClick)
        {
            _onClick = onClick;
            _rect = new Rectangle
            {
                Stroke = Brushes.Black,
                StrokeThickness = 1,
                Width = 20,
                Height = 10 
            };

            Update(commentTag);
            Content = _rect;
        }
Exemplo n.º 3
0
 internal void Update(CommentTag commentTag)
 {
     _rect.Fill  = MakeBrush(Colors.SeaGreen);
     _rect.Width = commentTag.Content.Length * 12;
 }
Exemplo n.º 4
0
 internal void Update(CommentTag commentTag)
 {
     _rect.Fill = MakeBrush(Colors.SeaGreen  );
     _rect.Width = commentTag.Content.Length * 12;
 }