コード例 #1
0
ファイル: HintBuilder.cs プロジェクト: ugurak/nemerle
        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
            });
        }
コード例 #2
0
ファイル: HintBuilder.cs プロジェクト: vestild/nemerle
        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 };
        }