Example #1
0
        private static Inline BuildRef(ElementToken token, Hint hint)
        {
            string handler;

            token.Attributes.TryGetValue("handler", out handler);

            string hintStr;

            token.Attributes.TryGetValue("hint", out hintStr);
            if (hintStr != null)
            {
                hintStr = "<code>" + hintStr + "</code>";
            }
            var hc = new HintControl(hintStr, handler);

            Fill(hc.Inlines, token, hint);
            return(new InlineUIContainer {
                Child = hc
            });
        }
Example #2
0
        private static Inline BuildRef(ElementToken token, Hint hint)
        {
            string handler;
            token.Attributes.TryGetValue("handler", out handler);

            string hintStr;
            token.Attributes.TryGetValue("hint", out hintStr);
            if (hintStr != null)
            {
                hintStr = "<code>" + hintStr + "</code>";
            }
            var hc = new HintControl(hintStr, handler);
            Fill(hc.Inlines, token, hint);
            return new InlineUIContainer { Child = hc };
        }