private TextBlock AddHyperlinkToGrid(Panel parent, string hyperlinkText, ref int gridRow, int gridColumn, string style, string tooltip = null, object parameter = null)
{
var hyperlink = new Hyperlink(new Run(hyperlinkText))
{
Command = this.showTransactionsCommand,
CommandParameter = parameter
};
var textBlock = new TextBlock(hyperlink)
{
Style = (Style)FindResource(style),
ToolTip = tooltip ?? hyperlinkText
};
Grid.SetColumn(textBlock, gridColumn);
Grid.SetRow(textBlock, gridRow++);
parent.Children.Add(textBlock);
return textBlock;
}