Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Changed Mentions in MessageRenderer to HyperLinkButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
Avid29 committed Apr 27, 2022
1 parent 57ed5b3 commit 3911148
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/Quarrel/Controls/Message/MessageRenderer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,12 @@ private static void Parse(IList<ASTRoot> tree, BlockCollection blocks)
{
InlineUIContainer container = new InlineUIContainer();
inlineCollection.Add(container);
container.Child = new Border()
container.Child = new HyperlinkButton()
{
RenderTransform = new TranslateTransform { Y = 4 },
Background = new SolidColorBrush(Colors.DarkGray),
Child = new TextBlock()
Padding = new Thickness(0),
Content = new TextBlock()
{
FontWeight = container.FontWeight,
FontSize = container.FontSize,
Expand All @@ -310,11 +311,12 @@ private static void Parse(IList<ASTRoot> tree, BlockCollection blocks)
{
InlineUIContainer container = new InlineUIContainer();
inlineCollection.Add(container);
container.Child = new Border()
container.Child = new HyperlinkButton()
{
RenderTransform = new TranslateTransform { Y = 4 },
Background = new SolidColorBrush(Colors.DarkGray),
Child = new TextBlock()
Padding = new Thickness(0),
Content = new TextBlock()
{
FontWeight = container.FontWeight,
FontSize = container.FontSize,
Expand All @@ -330,11 +332,12 @@ private static void Parse(IList<ASTRoot> tree, BlockCollection blocks)
{
InlineUIContainer container = new InlineUIContainer();
inlineCollection.Add(container);
container.Child = new Border()
container.Child = new HyperlinkButton()
{
RenderTransform = new TranslateTransform { Y = 4 },
Background = new SolidColorBrush(Colors.DarkGray),
Child = new TextBlock()
Padding = new Thickness(0),
Content = new TextBlock()
{
FontWeight = container.FontWeight,
FontSize = container.FontSize,
Expand Down Expand Up @@ -376,7 +379,6 @@ private static void Parse(IList<ASTRoot> tree, BlockCollection blocks)
inlineCollection.Add(new Run() { Text = textNode.Content });
break;
}

}
}
}
Expand Down

0 comments on commit 3911148

Please sign in to comment.