Custom textblock that transforms its content to different color
I will write a custom textblock that splits its text content. It will make texts diffent colors depending on conditions and the texts will be separated with commas. Commas will remain black. I don't know how to start. Could you please provide help to start? Thanks in advance Below user control uses an items control to show each token with some random color. Usage: <local:ColorTextBlock Text="abcd,abcde, abc, abcdef, abc, abcde, "/> XAML: <UserControl x:Class="WpfApplication1.ColorTextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com