public HintControl(string hintKey, Func<string, string> hintTextLookup, string handler)
{
HintTextLookup = hintTextLookup;
_hintKey = hintKey;
Handler = handler;
MouseEnter += delegate { RaiseEvent(new RoutedEventArgs(MouseHoverEvent)); };
if (handler != null)
{
var hLink = new Hyperlink { Focusable = false };
hLink.Click +=
delegate
{
RaiseEvent(new RoutedEventArgs(ClickEvent));
};
span = hLink;
}
else
{
span = new Span();
}
base.Inlines.Add(span);
}