Added SelectedTab property
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
@@ -42,6 +42,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
private int _strongPrivacyLevel;
private string _dustThreshold;
private FeeDisplayFormat _selectedFeeDisplayFormat;
+ private int _selectedTab;
private bool _darkModeEnabled;
private Global Global;
@@ -57,6 +58,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
this.ValidateProperty(x => x.BitcoinP2PEndPoint, ValidateBitcoinP2PEndPoint);
_darkModeEnabled = true;
+ _selectedTab = 0;
Autocopy = Global.UiConfig.Autocopy;
CustomFee = Global.UiConfig.IsCustomFee;
CustomChangeAddress = Global.UiConfig.IsCustomChangeAddress;
@@ -307,6 +309,12 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
set => this.RaiseAndSetIfChanged(ref _selectedFeeDisplayFormat, value);
}
+ public int SelectedTab
+ {
+ get => _selectedTab;
+ set => this.RaiseAndSetIfChanged(ref _selectedTab, value);
+ }
+
public override string IconName => "settings_regular";
private void Save()

MODIFY
WalletWasabi.Fluent/Views/Settings/SettingsPageView.xaml
WalletWasabi.Fluent/Views/Settings/SettingsPageView.xaml
xmlns:settings="clr-namespace:WalletWasabi.Fluent.ViewModels.Settings"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="settings:SettingsPageViewModel"
+ x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Settings.SettingsPageView">
<UserControl.Styles>
<Style Selector="TabItem">
</Style>
</UserControl.Styles>
<c:ContentArea Title="Settings" Caption="Manage appearance, privacy and other settings">
- <TabControl>
+ <TabControl SelectedIndex="{Binding SelectedTab, Mode=TwoWay}">
<TabItem Header="General">
<v:GeneralSettingsView />
</TabItem>

Added SelectedTab property