Cleanup behaviors naming and move types to models
RENAME
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnActivated.cs
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnActivatedBehavior.cs
@@ -7,10 +7,10 @@ using Avalonia.Controls.ApplicationLifetimes;
namespace WalletWasabi.Fluent.Behaviors;
-public class ExecuteCommandOnActivated : DisposingBehavior<Control>
+public class ExecuteCommandOnActivatedBehavior : DisposingBehavior<Control>
{
public static readonly StyledProperty<ICommand?> CommandProperty =
- AvaloniaProperty.Register<ExecuteCommandOnActivated, ICommand?>(nameof(Command));
+ AvaloniaProperty.Register<ExecuteCommandOnActivatedBehavior, ICommand?>(nameof(Command));
public ICommand? Command
{

RENAME
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnDoubleTapped.cs
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnDoubleTappedBehavior.cs
@@ -7,10 +7,10 @@ using Avalonia.Interactivity;
namespace WalletWasabi.Fluent.Behaviors;
-public class ExecuteCommandOnDoubleTapped : DisposingBehavior<Control>
+public class ExecuteCommandOnDoubleTappedBehavior : DisposingBehavior<Control>
{
public static readonly StyledProperty<ICommand?> CommandProperty =
- AvaloniaProperty.Register<ExecuteCommandOnDoubleTapped, ICommand?>(nameof(Command));
+ AvaloniaProperty.Register<ExecuteCommandOnDoubleTappedBehavior, ICommand?>(nameof(Command));
public ICommand? Command
{

MODIFY
WalletWasabi.Fluent/Behaviors/FlyoutSuggestionBehavior.cs
WalletWasabi.Fluent/Behaviors/FlyoutSuggestionBehavior.cs
@@ -4,6 +4,7 @@ using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using ReactiveUI;
+using WalletWasabi.Fluent.Models;
namespace WalletWasabi.Fluent.Behaviors;

RENAME
WalletWasabi.Fluent/Behaviors/FocusNextWhenValid.cs
WalletWasabi.Fluent/Behaviors/FocusNextWhenValidBehavior.cs
@@ -8,7 +8,7 @@ using ReactiveUI;
namespace WalletWasabi.Fluent.Behaviors;
-public class FocusNextWhenValid : DisposingBehavior<TextBox>
+public class FocusNextWhenValidBehavior : DisposingBehavior<TextBox>
{
protected override void OnAttached(CompositeDisposable disposables)
{

MODIFY
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorParentBehavior.cs
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorParentBehavior.cs
using System.Reactive.Disposables;
using Avalonia;
using Avalonia.Controls;
+using WalletWasabi.Fluent.Models;
namespace WalletWasabi.Fluent.Behaviors;

RENAME
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorState.cs
WalletWasabi.Fluent/Models/NavBarSelectedIndicatorState.cs
@@ -8,7 +8,7 @@ using Avalonia.Media;
using Avalonia.Styling;
using Avalonia.VisualTree;
-namespace WalletWasabi.Fluent.Behaviors;
+namespace WalletWasabi.Fluent.Models;
public class NavBarSelectedIndicatorState : IDisposable
{

RENAME
WalletWasabi.Fluent/Behaviors/Suggestion.cs
WalletWasabi.Fluent/Models/Suggestion.cs
using System.Windows.Input;
using ReactiveUI;
-namespace WalletWasabi.Fluent.Behaviors;
+namespace WalletWasabi.Fluent.Models;
public class Suggestion
{

MODIFY
WalletWasabi.Fluent/Views/Dialogs/AddressEntryDialogView.axaml
WalletWasabi.Fluent/Views/Dialogs/AddressEntryDialogView.axaml
VerticalAlignment="Top">
<i:Interaction.Behaviors>
<behaviors:FocusOnAttachedBehavior />
- <behaviors:ExecuteCommandOnActivated Command="{Binding AutoPasteCommand}" />
+ <behaviors:ExecuteCommandOnActivatedBehavior Command="{Binding AutoPasteCommand}" />
</i:Interaction.Behaviors>
<TextBox.InnerRightContent>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Spacing="10" Margin="10 0">

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/WalletCoinsView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/WalletCoinsView.axaml
Background="Transparent"
x:CompileBindings="True" x:DataType="walletcoins:WalletCoinViewModel">
<i:Interaction.Behaviors>
- <behaviors:ExecuteCommandOnDoubleTapped Command="{Binding ToggleSelectCommand, Mode=OneWay}" />
+ <behaviors:ExecuteCommandOnDoubleTappedBehavior Command="{Binding ToggleSelectCommand, Mode=OneWay}" />
</i:Interaction.Behaviors>
<Border Name="PART_SelectionIndicator"
BorderThickness="2 0 0 0"

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
Background="Transparent"
x:CompileBindings="True" x:DataType="historyItems:HistoryItemViewModelBase">
<i:Interaction.Behaviors>
- <behaviors:ExecuteCommandOnDoubleTapped Command="{Binding ShowDetailsCommand, Mode=OneWay}" />
+ <behaviors:ExecuteCommandOnDoubleTappedBehavior Command="{Binding ShowDetailsCommand, Mode=OneWay}" />
</i:Interaction.Behaviors>
<Border Name="PART_SelectionIndicator"
BorderThickness="2 0 0 0"

MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
Background="Transparent"
x:CompileBindings="True" x:DataType="receive:AddressViewModel">
<i:Interaction.Behaviors>
- <behaviors:ExecuteCommandOnDoubleTapped Command="{Binding NavigateCommand, Mode=OneWay}"/>
+ <behaviors:ExecuteCommandOnDoubleTappedBehavior Command="{Binding NavigateCommand, Mode=OneWay}"/>
</i:Interaction.Behaviors>
<Border Name="PART_SelectionIndicator"
BorderThickness="2 0 0 0"

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
xmlns:c="using:WalletWasabi.Fluent.Controls"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Send"
xmlns:converters="clr-namespace:WalletWasabi.Fluent.Converters"
+ xmlns:models="clr-namespace:WalletWasabi.Fluent.Models"
mc:Ignorable="d"
x:DataType="vm:SendViewModel"
x:CompileBindings="True"
<UserControl.DataTemplates>
- <DataTemplate DataType="behaviors:Suggestion">
+ <DataTemplate DataType="models:Suggestion">
<Button Background="Transparent" HorizontalAlignment="Center" Padding="8" DockPanel.Dock="Right" Command="{Binding AcceptCommand}" Focusable="False" Cursor="Hand">
<DockPanel HorizontalAlignment="Center">
<PathIcon Data="{StaticResource paste_regular}" Width="20" DockPanel.Dock="Left" />
AcceptsReturn="False">
<i:Interaction.Behaviors>
<behaviors:FocusOnAttachedBehavior />
- <behaviors:ExecuteCommandOnActivated Command="{Binding AutoPasteCommand}" />
- <behaviors:FocusNextWhenValid />
+ <behaviors:ExecuteCommandOnActivatedBehavior Command="{Binding AutoPasteCommand}" />
+ <behaviors:FocusNextWhenValidBehavior />
</i:Interaction.Behaviors>
<TextBox.InnerRightContent>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Spacing="10" Margin="10 0">

Cleanup behaviors naming and move types to models