receive tab label using notifications.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
</StackPanel>
<Button Content="Generate Receive Address" Command="{Binding GenerateCommand}" VerticalAlignment="Top" Grid.Column="1" />
</Grid>
- <Grid IsVisible="{Binding LabelRequiredNotificationVisible}">
- <Grid Opacity="{Binding LabelRequiredNotificationOpacity}">
- <Grid.Transitions>
- <DoubleTransition Property="Opacity" Easing="CircularEaseIn" Duration="0:0:0.5" />
- </Grid.Transitions>
- <TextBlock Classes="warningMessage" Text="Label Is Required!" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </Grid>
- </Grid>
</DockPanel>
<Grid ColumnDefinitions="300, *, 50" Margin="5 10 5 0" Grid.Row="1">
<TextBlock Text="Label:" />

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -56,14 +56,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Label = label;
if (label.IsEmpty)
{
- LabelRequiredNotificationVisible = true;
- LabelRequiredNotificationOpacity = 1;
-
- Dispatcher.UIThread.PostLogException(async () =>
- {
- await Task.Delay(TimeSpan.FromSeconds(4));
- LabelRequiredNotificationOpacity = 0;
- });
+ NotificationHelpers.Warning("Label is required.");
return;
}
@@ -226,18 +219,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _label, value);
}
- public double LabelRequiredNotificationOpacity
- {
- get => _labelRequiredNotificationOpacity;
- set => this.RaiseAndSetIfChanged(ref _labelRequiredNotificationOpacity, value);
- }
-
- public bool LabelRequiredNotificationVisible
- {
- get => _labelRequiredNotificationVisible;
- set => this.RaiseAndSetIfChanged(ref _labelRequiredNotificationVisible, value);
- }
-
public int CaretIndex
{
get => _caretIndex;

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -354,7 +354,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
if (isCompatibilityPasswordUsed)
{
- WarningMessage = PasswordHelper.CompatibilityPasswordWarnMessage;
+ NotificationHelpers.Warning(PasswordHelper.CompatibilityPasswordWarnMessage);
}
return;
}
@@ -402,7 +402,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
if (isCompatibilityPasswordUsed)
{
- WarningMessage = PasswordHelper.CompatibilityPasswordWarnMessage;
+ NotificationHelpers.Warning(PasswordHelper.CompatibilityPasswordWarnMessage);
}
}
catch (InsufficientBalanceException ex)

receive tab label using notifications.