remove unnecessary version converter
DELETE
WalletWasabi.Fluent/Converters/VersionStringConverter.cs
-using System;
-using System.Globalization;
-using Avalonia.Data.Converters;
-using WalletWasabi.Exceptions;
-
-namespace WalletWasabi.Fluent.Converters
-{
- public class VersionStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is Version version)
- {
- return version.ToString();
- }
- else
- {
- throw new TypeArgumentException(value, typeof(Version), nameof(value));
- }
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return Version.Parse(value as string ?? "");
- }
- }
-}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/AboutView.axaml
WalletWasabi.Fluent/Views/AboutView.axaml
x:DataType="vm:AboutViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.AboutView">
- <UserControl.Resources>
- <converters:VersionStringConverter x:Key="VersionStringConverter" />
- </UserControl.Resources>
<UserControl.Styles>
<Style Selector="TextBlock#LogoText1">
<Style.Animations>
</Animation>
</Style.Animations>
</Style>
- <Style Selector="TextBlock.OnePxPadding">
- <Setter Property="Margin" Value="0 0 0 1" />
- </Style>
<Style Selector="TextBlock.LinkSeparatorPadding">
- <Setter Property="Margin" Value="5 1" />
+ <Setter Property="Margin" Value="5 -0.5" />
</Style>
<Style Selector="TextBlock.Header">
<Setter Property="Margin" Value="0 4 0 0" />
<StackPanel Margin="0 10 0 0">
<TextBlock Classes="Header" Text="Current Version" />
<TextBox Classes="Content selectable_text_block"
- Text="{Binding ClientVersion, Converter={StaticResource VersionStringConverter}}" />
+ Text="{Binding ClientVersion}" />
</StackPanel>
<WrapPanel Margin="0 15 0 25">
<TextBlock Margin=" 0 0 0 -0.5" Text="This open source software is licensed with " />

MODIFY
WalletWasabi.Fluent/Views/Dialogs/AboutAdvancedInfoView.axaml
WalletWasabi.Fluent/Views/Dialogs/AboutAdvancedInfoView.axaml
x:DataType="dialogs:AboutAdvancedInfoViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Dialogs.AboutAdvancedInfoView">
- <UserControl.Resources>
- <converters:VersionStringConverter x:Key="VersionStringConverter" />
- </UserControl.Resources>
<UserControl.Styles>
<Style Selector="TextBlock.Header">
<Setter Property="Margin" Value="0 4 0 0" />
<StackPanel>
<TextBlock Classes="Header" Text="Compatible Bitcoin Core and Bitcoin Knots Versions " />
<TextBox Classes="Content selectable_text_block"
- Text="{Binding BitcoinCoreVersion, Converter={StaticResource VersionStringConverter}}" />
+ Text="{Binding BitcoinCoreVersion}" />
</StackPanel>
<StackPanel>
<TextBlock Classes="Header" Text="Compatible Hardware Wallet Interface Version " />
<TextBox Classes="Content selectable_text_block"
- Text="{Binding HwiVersion, Converter={StaticResource VersionStringConverter}}" />
+ Text="{Binding HwiVersion}" />
</StackPanel>
</StackPanel>
</controls:ContentArea>

remove unnecessary version converter