Add IsVisible property support
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TilePresetViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TilePresetViewModel.cs
@@ -6,17 +6,19 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
[AutoNotify] private int _row;
[AutoNotify] private int _columnSpan;
[AutoNotify] private int _rowSpan;
+ [AutoNotify] private bool _isVisible;
public TilePresetViewModel()
{
}
- public TilePresetViewModel(int column, int row, int columnSpan, int rowSpan)
+ public TilePresetViewModel(int column, int row, int columnSpan, int rowSpan, bool isVisible = true)
{
Column = column;
Row = row;
ColumnSpan = columnSpan;
RowSpan = rowSpan;
+ IsVisible = isVisible;
}
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TileViewModel.cs
@@ -23,6 +23,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
public int RowSpan => CurrentTilePreset?.RowSpan ?? 1;
+ public bool IsVisible => CurrentTilePreset?.IsVisible ?? true;
+
public TilePresetViewModel? CurrentTilePreset => TilePresets?[TilePresetIndex];
private void NotifyPresetChanged()
@@ -32,6 +34,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
this.RaisePropertyChanged(nameof(Row));
this.RaisePropertyChanged(nameof(ColumnSpan));
this.RaisePropertyChanged(nameof(RowSpan));
+ this.RaisePropertyChanged(nameof(IsVisible));
}
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
<Setter Property="Grid.Row" Value="{Binding Row}" />
<Setter Property="Grid.ColumnSpan" Value="{Binding ColumnSpan}" />
<Setter Property="Grid.RowSpan" Value="{Binding RowSpan}" />
+ <Setter Property="IsVisible" Value="{Binding IsVisible}" />
</Style>
</ItemsControl.Styles>
<ItemsControl.ItemsPanel>

Add IsVisible property support