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 }); }
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 }; }