Add LinkView user control
MODIFY
WalletWasabi.Fluent/Views/HelpAndSupport/AboutView.axaml
WalletWasabi.Fluent/Views/HelpAndSupport/AboutView.axaml
<WrapPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate DataType="vm:LinkViewModel">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Horizontal" Spacing="5" Margin="2">
- <Button Classes="plain"
- Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding Link}"
- IsVisible="{Binding IsClickable}">
- <TextBlock Text="{Binding Description}" Classes="Hyperlink" />
- </Button>
- <TextBlock Text="{Binding Description}"
- IsVisible="{Binding !IsClickable}"/>
- <controls:AnimatedButton ToolTip.Tip="Copy link"
- Command="{Binding CopyLinkCommand}"
- CommandParameter="{Binding Link}"
- NormalIcon="{StaticResource copy_regular}"
- ClickIcon="{StaticResource copy_confirmed}" />
- </StackPanel>
- <TextBlock Classes="LinkSeparatorPadding"
- IsVisible="{Binding !IsLast}"
- Text="-" />
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
</ItemsControl>
<!-- Advanced -->
<Button HorizontalAlignment="Center" Classes="plain obscured"

ADD
WalletWasabi.Fluent/Views/HelpAndSupport/LinkView.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:vm="using:WalletWasabi.Fluent.ViewModels.HelpAndSupport"
+ xmlns:controls="using:WalletWasabi.Fluent.Controls"
+ mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
+ x:DataType="vm:LinkViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.HelpAndSupport.LinkView">
+ <UserControl.Styles>
+ <Style Selector="TextBlock.LinkSeparatorPadding">
+ <Setter Property="Margin" Value="5 -0.5" />
+ <Setter Property="VerticalAlignment" Value="Center" />
+ </Style>
+ <Style Selector="TextBlock.Hyperlink">
+ <Setter Property="TextDecorations" Value="Underline" />
+ <Setter Property="Foreground" Value="{DynamicResource SystemAccentColor}" />
+ <Setter Property="VerticalAlignment" Value="Center" />
+ </Style>
+ </UserControl.Styles>
+ <StackPanel Orientation="Horizontal">
+ <StackPanel Orientation="Horizontal" Spacing="5" Margin="2">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{Binding Link}"
+ IsVisible="{Binding IsClickable}">
+ <TextBlock Text="{Binding Description}" Classes="Hyperlink" />
+ </Button>
+ <TextBlock Text="{Binding Description}"
+ IsVisible="{Binding !IsClickable}"/>
+ <controls:AnimatedButton ToolTip.Tip="Copy link"
+ Command="{Binding CopyLinkCommand}"
+ CommandParameter="{Binding Link}"
+ NormalIcon="{StaticResource copy_regular}"
+ ClickIcon="{StaticResource copy_confirmed}" />
+ </StackPanel>
+ <TextBlock Classes="LinkSeparatorPadding"
+ IsVisible="{Binding !IsLast}"
+ Text="-" />
+ </StackPanel>
+</UserControl>

ADD
WalletWasabi.Fluent/Views/HelpAndSupport/LinkView.axaml.cs
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.HelpAndSupport
+{
+ public class LinkView : UserControl
+ {
+ public LinkView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}
\ No newline at end of file

Add LinkView user control