public static Inline ToInline(this UserNode node, Channel chan = null) { var character = node.GetCharacter(App.Current.FChatClient); return(new Hyperlink { Inlines = { (chan == null || character.CharacterSymbolRect(chan) == null ? null : new Image { Source = new CroppedBitmap(App.Current.CombinedImageResource, character.CharacterSymbolRect(chan).Value), Width = 16, Height = 16, Margin = new Thickness(2) }), new InlineUIContainer(new Image { Source = new CroppedBitmap(App.Current.CombinedImageResource, character.CharacterStatusRect()), Width = 16, Height = 16, Margin = new Thickness(4) }), }, TextDecorations = null, Foreground = character.CharacterGenderBrush() }); }