public InlineMessage(InlineSeverity severity, params object[] inlines) { Severity = severity; Message = new TextBlock(); Message.TextWrapping = TextWrapping.WrapWithOverflow; Message.Inlines.AddRange(from inline in inlines select inline is Inline ? inline : new Run(inline.ToString())); }
private static int GetSeverityIconID(InlineSeverity severity) { switch (severity) { case InlineSeverity.Information: return(79); case InlineSeverity.Warning: return(78); case InlineSeverity.Error: return(80); default: return(-1); } }