コード例 #1
0
        internal void Update(IntraTextGoToTag goToTag) {
            _goToTag            = goToTag;            
            ToolTip             = _goToTag.ToolTip;
            _crispImage.Moniker = _goToTag.ImageMoniker;          

            UpdateColor();
        }
コード例 #2
0
        internal IntraTextGoToAdornment(IntraTextGoToTag goToTag, IWpfTextView textView, GoToLocationService goToLocationService) {

            _textView            = textView;
            _goToLocationService = goToLocationService;
            _crispImage          = new CrispImage();

            RenderOptions.SetBitmapScalingMode(_crispImage, BitmapScalingMode.NearestNeighbor);

            Width       = 20;
            Height      = 20;
            Background  = Brushes.Transparent;
            BorderBrush = Brushes.Transparent;
            Cursor      = Cursors.Hand;
            Margin      = new Thickness(0, 0, 0, 0);            
            Content     = _crispImage;

            Click += OnClick;
            
            Update(goToTag);
        }