I have in my project message on the Log:
Error in object wiht id={488DB9A2-6C4C-4E06-887E-6D35C6D538CA}
And I want to show this guid as Hyperlink as you see. I made creating TextBlock with simple text and link.
public TextBlock InitTextBlock(string message)
{
var textBlock = new TextBlock();
var strs = ParseByGuid(Message);
foreach (var str in strs)
{
var run = new Run(str.Text);
if (str.IsLink)
textBlock.Inlines.Add(new Hyperlink(run));
else
textBlock.Inlines.Add(run);
}
return textBlock;
}
But I need put it TextBlock in DataGrid or may be another control.