simplify props
MODIFY
WalletWasabi.Fluent/Controls/NavBarItem.cs
WalletWasabi.Fluent/Controls/NavBarItem.cs
@@ -34,8 +34,8 @@ namespace WalletWasabi.Fluent.Controls
/// </summary>
public bool IsSelected
{
- get { return GetValue(IsSelectedProperty); }
- set { SetValue(IsSelectedProperty, value); }
+ get => GetValue(IsSelectedProperty);
+ set => SetValue(IsSelectedProperty, value);
}
public IconElement Icon

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -36,8 +36,8 @@ namespace WalletWasabi.Fluent.ViewModels
public NavBarViewModel NavBar
{
- get { return _navBar; }
- set { this.RaiseAndSetIfChanged(ref _navBar, value); }
+ get => _navBar;
+ set => this.RaiseAndSetIfChanged(ref _navBar, value);
}
public StatusBarViewModel StatusBar

MODIFY
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
@@ -137,25 +137,25 @@ namespace WalletWasabi.Fluent.ViewModels
public ObservableCollection<NavBarItemViewModel> TopItems
{
- get { return _topItems; }
- set { this.RaiseAndSetIfChanged(ref _topItems, value); }
+ get => _topItems;
+ set => this.RaiseAndSetIfChanged(ref _topItems, value);
}
public ObservableCollection<WalletViewModelBase> Items
{
- get { return _items; }
- set { this.RaiseAndSetIfChanged(ref _items, value); }
+ get => _items;
+ set => this.RaiseAndSetIfChanged(ref _items, value);
}
public ObservableCollection<NavBarItemViewModel> BottomItems
{
- get { return _bottomItems; }
- set { this.RaiseAndSetIfChanged(ref _bottomItems, value); }
+ get => _bottomItems;
+ set => this.RaiseAndSetIfChanged(ref _bottomItems, value);
}
public NavBarItemViewModel SelectedItem
{
- get { return _selectedItem; }
+ get => _selectedItem;
set
{
if (_selectedItem != value)
@@ -185,14 +185,14 @@ namespace WalletWasabi.Fluent.ViewModels
public Action ToggleAction
{
- get { return _toggleAction; }
- set { this.RaiseAndSetIfChanged(ref _toggleAction, value); }
+ get => _toggleAction;
+ set => this.RaiseAndSetIfChanged(ref _toggleAction, value);
}
public Action CollapseOnClickAction
{
- get { return _collapseOnClickAction; }
- set { this.RaiseAndSetIfChanged(ref _collapseOnClickAction, value); }
+ get => _collapseOnClickAction;
+ set => this.RaiseAndSetIfChanged(ref _collapseOnClickAction, value);
}
public bool IsBackButtonVisible
@@ -203,8 +203,8 @@ namespace WalletWasabi.Fluent.ViewModels
public bool IsOpen
{
- get { return _isOpen; }
- set { this.RaiseAndSetIfChanged(ref _isOpen, value); }
+ get => _isOpen;
+ set => this.RaiseAndSetIfChanged(ref _isOpen, value);
}
public RoutingState Router { get; }

simplify props