Good afternoon,
I'm completely new to WPF, forgive me if the question is stupid. I need to format two strings that are contained in the same paragraph, one in bold, the other in normal text.
I did this:
Bold sting1 = new Bold(new Run(string.Format("{0}:", item.Chave))); // primeira parte
Run string2= new Run(string.Format("\t{0}", item.Valor)); // segunda parte
p1 = new Paragraph(string1).Inlines.Add(string2);// p1 já foi declarado como Block em outra parte do código
Doing this, I get the following error:
"Can not implicitly convert type void to System.Windows.Documents.Block "
I would appreciate it if someone had a light. Thank you very much for your attention.