Browse Source

use FlowDocumentScrollViewer to display documentation in the tooltips

pull/315/head
Siegfried Pammer 12 years ago
parent
commit
a0f669ff6b
  1. 6
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EntityCompletionData.cs
  2. 6
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/TypeCompletionData.cs

6
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EntityCompletionData.cs

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Windows.Controls;
using ICSharpCode.NRefactory.Completion;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop;
@ -27,7 +28,10 @@ namespace CSharpBinding.Completion @@ -27,7 +28,10 @@ namespace CSharpBinding.Completion
protected override object CreateFancyDescription()
{
return XmlDocFormatter.CreateTooltip(entity);
return new FlowDocumentScrollViewer {
Document = XmlDocFormatter.CreateTooltip(entity),
VerticalScrollBarVisibility = ScrollBarVisibility.Auto
};
}
}
}

6
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/TypeCompletionData.cs

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Windows.Controls;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
@ -27,7 +28,10 @@ namespace CSharpBinding.Completion @@ -27,7 +28,10 @@ namespace CSharpBinding.Completion
protected override object CreateFancyDescription()
{
return XmlDocFormatter.CreateTooltip(type);
return new FlowDocumentScrollViewer {
Document = XmlDocFormatter.CreateTooltip(type),
VerticalScrollBarVisibility = ScrollBarVisibility.Auto
};
}
}
}

Loading…
Cancel
Save