add table to home page
ADD
WalletWasabi.Fluent/Views/Wallets/History/HistoryTable.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:history="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets.History"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ x:DataType="history:HistoryViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.Wallets.History.HistoryTable">
+ <DataGrid Items="{Binding Histories}">
+ <DataGrid.Columns>
+ <DataGridTextColumn Header="Date"
+ x:DataType="history:HistoryItemViewModel"
+ Binding="{Binding Date}"
+ Width="*" />
+ <DataGridTextColumn Header="Labels"
+ x:DataType="history:HistoryItemViewModel"
+ Binding="{Binding Labels}"
+ Width="2*" />
+ <DataGridTextColumn Header="Outgoing"
+ x:DataType="history:HistoryItemViewModel"
+ Binding="{Binding OutgoingAmount}"
+ Width="*" />
+ <DataGridTextColumn Header="Incoming"
+ x:DataType="history:HistoryItemViewModel"
+ Binding="{Binding IncomingAmount}"
+ Width="*" />
+ <DataGridTextColumn Header="Status"
+ x:DataType="history:HistoryItemViewModel"
+ Binding="{Binding Confirmed}"
+ Width="*" />
+ </DataGrid.Columns>
+ </DataGrid>
+</UserControl>

ADD
WalletWasabi.Fluent/Views/Wallets/History/HistoryTable.axaml.cs
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.Wallets.History
+{
+ public class HistoryTable : UserControl
+ {
+ public HistoryTable()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:controls="clr-namespace:WalletWasabi.Fluent.Controls"
+ xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
xmlns:wallets="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets"
+ xmlns:history="clr-namespace:WalletWasabi.Fluent.Views.Wallets.History"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="wallets:WalletViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.WalletView">
- <controls:ContentArea Title="{Binding Title}"
- Caption="Wallet Home Page, currently under construction." />
+ <c:ContentArea Title="{Binding Title}"
+ Caption="Wallet Home Page, currently under construction." >
+ <history:HistoryTable DataContext="{Binding History}"/>
+ </c:ContentArea>
</UserControl>

add table to home page