add some comments...
MODIFY
WalletWasabi.Fluent/Controls/NavBarItem.cs
WalletWasabi.Fluent/Controls/NavBarItem.cs
@@ -5,6 +5,9 @@ using Avalonia.Controls.Primitives;
namespace WalletWasabi.Fluent.Controls
{
+ /// <summary>
+ /// Template class for items to be displayed in the sidebar.
+ /// </summary>
public class NavBarItem : TemplatedControl
{
/// <summary>
@@ -13,14 +16,20 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<bool> IsSelectedProperty =
AvaloniaProperty.Register<NavBarItem, bool>(nameof(IsSelected));
+ /// <summary>
+ /// Defines the <see cref="Icon"/> property.
+ /// </summary>
public static readonly StyledProperty<IconElement> IconProperty =
AvaloniaProperty.Register<NavBarItem, IconElement>(nameof(Icon));
+ /// <summary>
+ /// Defines the <see cref="Header"/> property.
+ /// </summary>
public static readonly StyledProperty<string> HeaderProperty =
AvaloniaProperty.Register<NavBarItem, string>(nameof(Header));
/// <summary>
- /// Initializes static members of the <see cref="NavBarItem"/> class.
+ /// Initializes the static members of the <see cref="NavBarItem"/> class.
/// </summary>
static NavBarItem()
{
@@ -38,12 +47,18 @@ namespace WalletWasabi.Fluent.Controls
set => SetValue(IsSelectedProperty, value);
}
+ /// <summary>
+ /// The icon to be shown beside the header text of the item.
+ /// </summary>
public IconElement Icon
{
get => GetValue(IconProperty);
set => SetValue(IconProperty, value);
}
+ /// <summary>
+ /// The header text of the item.
+ /// </summary>
public string Header
{
get => GetValue(HeaderProperty);

MODIFY
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
@@ -11,6 +11,9 @@ using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels
{
+ /// <summary>
+ /// The ViewModel that represents the structure of the sidebar.
+ /// </summary>
public class NavBarViewModel : ViewModelBase
{
private ObservableCollection<WalletViewModelBase> _items;

MODIFY
WalletWasabi.Fluent/ViewModels/ViewModelBase.cs
WalletWasabi.Fluent/ViewModels/ViewModelBase.cs
@@ -5,6 +5,9 @@ using ReactiveUI;
namespace WalletWasabi.Fluent.ViewModels
{
+ /// <summary>
+ /// Base class for all ViewModels.
+ /// </summary>
public class ViewModelBase : ReactiveObject
{
}

add some comments...