Use common link view
MODIFY
WalletWasabi.Fluent/ViewModels/HelpAndSupport/AboutViewModel.cs
WalletWasabi.Fluent/ViewModels/HelpAndSupport/AboutViewModel.cs
@@ -88,6 +88,14 @@ namespace WalletWasabi.Fluent.ViewModels.HelpAndSupport
},
};
+ License = new()
+ {
+ Link = LicenseLink,
+ Description = "MIT License",
+ IsClickable = true,
+ IsLast = true
+ };
+
OpenBrowserCommand = ReactiveCommand.CreateFromTask<string>(IoHelpers.OpenBrowserAsync);
AboutAdvancedInfoDialogCommand = ReactiveCommand.CreateFromTask(
@@ -108,6 +116,8 @@ namespace WalletWasabi.Fluent.ViewModels.HelpAndSupport
public List<LinkViewModel> Links { get; }
+ public LinkViewModel License { get; }
+
public ICommand AboutAdvancedInfoDialogCommand { get; }
public ICommand OpenBrowserCommand { get; }

MODIFY
WalletWasabi.Fluent/Views/HelpAndSupport/AboutView.axaml
WalletWasabi.Fluent/Views/HelpAndSupport/AboutView.axaml
<TextBlock Margin=" 0 0 0 -0.5"
VerticalAlignment="Center"
Text="This open source software is licensed with " />
- <StackPanel Orientation="Horizontal" Spacing="5" Margin="2">
- <Button Classes="plain"
- Command="{Binding OpenBrowserCommand}"
- CommandParameter="{x:Static vm:AboutViewModel.LicenseLink}">
- <TextBlock Text="MIT License" Classes="Hyperlink" />
- </Button>
- <controls:AnimatedButton ToolTip.Tip="Copy link"
- Command="{Binding CopyLinkCommand}"
- CommandParameter="{x:Static vm:AboutViewModel.LicenseLink}"
- NormalIcon="{StaticResource copy_regular}"
- ClickIcon="{StaticResource copy_confirmed}" />
- </StackPanel>
+ <ContentControl Content="{Binding License}"/>
</WrapPanel>
</StackPanel>
</DockPanel>

Use common link view