텍스트 편집기 (위의 선택, 텍스트 등)의 모든 부분을 가리키는 Visual Studio 확장을 작성하고 있습니다. 아무리 내가 OrderAttribute 함께 플레이하지 방법 -Visual Studio adorner z 순서를 변경할 수 없습니다.
[Export(typeof(IWpfTextViewCreationListener))]
[ContentType("csharp")]
[TextViewRole(PredefinedTextViewRoles.Interactive)]
internal sealed class MyAdornmentFactory : MyAdornmentFactoryBase, IWpfTextViewCreationListener
{
[Export(typeof(AdornmentLayerDefinition))]
[Name("MyName")]
[Order(After = PredefinedAdornmentLayers.Text, Before = PredefinedAdornmentLayers.Caret)]
[TextViewRole(PredefinedTextViewRoles.Interactive)]
public AdornmentLayerDefinition EditorAdornmentLayer;
// ...
}
문제는 텍스트 뒤에 내 WPF UserControl을 항상 "가죽"가 있다는 것이다.
내가 잘못 했나요? 이 행동에 영향을 줄 수있는 다른 것이 있습니까?
편집 : 이제 디버깅하지 않고 실행하는 중 ~ 가끔 ~ 작동하는지 확인할 수 있습니다 ... 관련 Visual Studio 버그를 아는 사람이 있습니까?
제 편집에서 언급했듯이, 작동해야한다는 것을 알고 있으며, 이미 작동하는 것을 보았습니다. - 문제는 때로는 그렇지 않습니다. 이 동작을 변경할 수있는 다른 "물건"(코드, 구성, 버그 등)을 찾기를 희망합니다. – seldary