
Hi,
I have a SyncAdornmentManager class that essentially controls drawing of a box in a document and a connecting line between two documents as shown in the image I emailed as I dont see a way to attach an image to this post. I am seeing an issue with the highlight current line property that when enabled is obscuring a box adornment when that line has focus and is highlighted, you can see this in the image. I draw the adorners on the mouse enter event and remove it on the mouse leave event.
Below is the code I have that sets up the ordering of the adorner, my question is, do we need a new order placement property that reflects the current line highlighter or is there something additional I need to do?
Thanks
/// <summary>
/// Represents an adornment manager for a view that makes a custom decorator under text.
/// </summary>
public class SyncAdornmentManager : DecorationAdornmentManagerBase<IEditorView, SyncTag>
{
/// <summary>
/// AdornmentLayerDefinition declaration
/// </summary>
private static AdornmentLayerDefinition layerDefinition = new AdornmentLayerDefinition("Sync",
new Ordering[] {
new Ordering(AdornmentLayerDefinitions.Highlight.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.TextBackground.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.Selection.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.CollapsedRegion.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.Squiggle.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.TextForeground.Key, OrderPlacement.After),
new Ordering(AdornmentLayerDefinitions.Caret.Key, OrderPlacement.After)
});