protected override object CreateFancyDescription() { return(new FlowDocumentScrollViewer { Document = XmlDocFormatter.CreateTooltip(type, false), VerticalScrollBarVisibility = ScrollBarVisibility.Auto }); }
public void HandleToolTipRequest(ToolTipRequestEventArgs e) { if (e.ResolveResult == null) { return; } TypeResolveResult trr = e.ResolveResult as TypeResolveResult; MemberResolveResult mrr = e.ResolveResult as MemberResolveResult; LocalResolveResult lrr = e.ResolveResult as LocalResolveResult; if (trr != null && trr.Type.GetDefinition() != null) { e.SetToolTip(CreateTooltip(trr.Type)); } else if (mrr != null) { e.SetToolTip(CreateTooltip(mrr.Member)); } else if (lrr != null) { e.SetToolTip(new FlowDocumentTooltip(XmlDocFormatter.CreateTooltip(lrr.Variable))); } }
object CreateTooltip(IEntity entity) { return(new FlowDocumentTooltip(XmlDocFormatter.CreateTooltip(entity))); }
object CreateTooltip(IType type) { return(new FlowDocumentTooltip(XmlDocFormatter.CreateTooltip(type))); }