예제 #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;
        }
예제 #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;
        }
예제 #3
0
 internal void Update(CommentTag commentTag)
 {
     _rect.Fill  = MakeBrush(Colors.SeaGreen);
     _rect.Width = commentTag.Content.Length * 12;
 }
예제 #4
0
 internal void Update(CommentTag commentTag)
 {
     _rect.Fill = MakeBrush(Colors.SeaGreen  );
     _rect.Width = commentTag.Content.Length * 12;
 }