Questions tagged [adornment]

14 questions
7
votes
1 answer

Visual Studio 2010 SDK -- How to place an adornment next to XML comment groups?

I'm having trouble finding out how to do this and the Visual Studio SDK Reference is not very helpful either. I'm trying to figure out how to get a NormalizedSnapshotSpanCollection of XML comments. I want to place an icon next to them... I don't…
michael
  • 14,844
  • 28
  • 89
  • 177
7
votes
2 answers

How to vertically align an inputAdornment so it remains at the top in a multiline MUI TextField

Using react I have a MUI multiline FieldText with a couple of inputAdornment icons aligned to the right. As I fill it in, the box changes its height for every new line and the icons are vertically centered in the middle. I am trying to make the…
7
votes
1 answer

WPF UIElements Inline with Text "Adornments"

In WPF how can I put regular UIElements inline with text? For example a certain classification of text would replace a span of text with a dropdown containing specific options. I've used objects like Span, Bold, Hyperlink that do some light…
joshperry
  • 41,167
  • 16
  • 88
  • 103
5
votes
2 answers

Remove WPF Validation adornment from Label

I am using databinding and IDataErrorInfo style validation in a form. This form includes a Label control for which I don't want to show the red adornment when validation fails. Can anyone recommend a way to remove this adornment from Label controls?
BrettRobi
  • 3,793
  • 7
  • 40
  • 64
4
votes
1 answer

Material UI: StartAdornment is not working with label

The standard variant of 'TextField' is not working as expected if 'StartAdornment' is added with an icon. If I add StartAdornment the label remains up. I want the label should work as placeholder and goes up when the focus is in TextField. Here is…
Abhishek Vyas
  • 599
  • 1
  • 9
  • 24
3
votes
1 answer

Can't change Visual Studio adorner z order

I am writing a Visual Studio extension that hovers above everything inside the text editor (above selections, text,…
seldary
  • 6,186
  • 4
  • 40
  • 55
2
votes
1 answer

C#'s scroll bar adornments?

When writing a Visual Studio extension, is there any way to influence how it renders map-mode scroll bar for c#?
cubrman
  • 884
  • 1
  • 9
  • 22
2
votes
1 answer

Visual Studio adornment in front of text interferes with selection

Last week, I decided to create a Visual Studio Extension for measuring C++ code coverage. Basically I needed it myself for my daily work. What I came up with was the project that can be found https://github.com/atlaste/CPPCoverage . Most it works…
atlaste
  • 30,418
  • 3
  • 57
  • 87
1
vote
1 answer

Diagram.contextMenu value is not an instance of Adornment

I have the following definition for a contextMenu on my Go diagram SeatingMapGraphicsRef.contextMenu = $(go.Adornment, "Vertical", // no binding, always visible button: $("ContextMenuButton", $(go.TextBlock, "Hold Seats"), { click:…
Thalatta
  • 4,510
  • 10
  • 48
  • 79
0
votes
1 answer

Adornement layer in Visual Studio 2010 editor randomly moves by scrolling

I am trying decorate code lines with various metrics collected during an execution of a program. In order to do that I use VS extensibility and adornments layer. However it seems to be somewhat unstable and moves relative to the top of the document…
honzajscz
  • 2,850
  • 1
  • 27
  • 29
0
votes
0 answers

MUI Date Picker how to add a new button next to the openPickerButton (calendar icon)?

I would like to add a clear button (X) to MUI Date Picker next to the calendar icon. X is on the wrong place My problem is that I am trying to add it with using endAdornment, but then the clear icon doesn't show up, it only shows up when I use…
stromi
  • 1
  • 1
0
votes
1 answer

Get Visual Studio background color from ColorableItemInfo

Ok this code gives you access to the user-setup background color in VS: System.Guid guid = new System.Guid("{58E96763-1D3B-4E05-B6BA-FF7115FD0B7B}"); IVsFontAndColorStorage fontAndColorStorage = …
cubrman
  • 884
  • 1
  • 9
  • 22
0
votes
1 answer

Accessing all the methods and classes for VS Extension with Adornment

I am developing an extension for visual studio with adornment. I have to put label above every class and methods in active document. Now my problem is how can I get all the methods and classes? I searched for it but none of them shows the exact…
0
votes
2 answers

Text-relative Adornments in VS2010: they are SOMETIMES displayed at incorrect positions

You are my only hope. I have searched everywhere and just can't find anything that could help me with this one. I've done a simple code marking plugin for Visual Studio (2010). It just finds some parts of code to highlight (by Regex), creates Spans…
P.W.
  • 657
  • 8
  • 15