Animation for option buttons
MODIFY
WalletWasabi.Fluent/Styles/OptionButton.xaml
WalletWasabi.Fluent/Styles/OptionButton.xaml
<Setter Property="CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
<Setter Property="BoxShadow" Value="{DynamicResource OptionButtonShadow}" />
</Style>
-
- <Style Selector="Button.option[IsVisible=true]">
- <Setter Property="Opacity" Value="1" />
- </Style>
-
- <Style Selector="Button.option[IsVisible=false]">
- <Setter Property="Opacity" Value="0" />
- </Style>
</Styles>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/AddWalletPageView.axaml
WalletWasabi.Fluent/Views/AddWalletPageView.axaml
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
+ xmlns:converters="clr-namespace:WalletWasabi.Fluent.Converters;assembly=WalletWasabi.Fluent"
xmlns:behaviors="clr-namespace:WalletWasabi.Fluent.Behaviors"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="vm:HomePageViewModel"
x:Class="WalletWasabi.Fluent.Views.AddWalletPageView">
+ <UserControl.Resources>
+ <converters:BoolToOpacityConverter x:Key="BoolToOpacityConverter" />
+ </UserControl.Resources>
+
<c:ContentArea Title="Add Wallet" Caption="Type in your wallets name and select an option:">
<DockPanel>
<StackPanel DockPanel.Dock="Top" Margin="0 0 0 40">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="0" />
- <Setter Property="IsVisible" Value="{Binding OptionsEnabled}" />
+ <Setter Property="IsEnabled" Value="{Binding OptionsEnabled}" />
+ <Setter Property="Opacity" Value="{Binding OptionsEnabled, Converter={StaticResource BoolToOpacityConverter}}" />
</Style>
</StackPanel.Styles>
<Button Classes="option" Command="{Binding CreateWalletCommand}">

Animation for option buttons