WpfHint2.UIBuilding.HintControl.HintControl C# (CSharp) Method

HintControl() public method

public HintControl ( string hintKey, string>.Func hintTextLookup, string handler ) : System
hintKey string
hintTextLookup string>.Func
handler string
return System
        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);
        }

Same methods

HintControl::HintControl ( string hintText, string handler ) : System