use InfoMessage control for warning message
MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
<DockPanel>
<!-- Warning messages -->
- <Panel Margin="0 10 0 0" DockPanel.Dock="Bottom">
+ <StackPanel Margin="0 10 0 0" DockPanel.Dock="Bottom" Spacing="5">
<Panel.Styles>
<Style Selector="c|InfoMessage[IsVisible=False]">
<Setter Property="Opacity" Value="0" />
</Style>
+ <Style Selector="c|InfoMessage">
+ <Setter Property="HorizontalAlignment" Value="Center" />
+ </Style>
</Panel.Styles>
+
<c:InfoMessage Foreground="{DynamicResource WarningMessageForeground}"
- HorizontalAlignment="Center"
IsVisible="{Binding !EnoughSelected}" >
<StackPanel Orientation="Horizontal">
<TextBlock Text="Insufficient funds selected. Select at least another " />
<TextBlock Text=" BTC" />
</StackPanel>
</c:InfoMessage>
- <c:InfoMessage IsVisible="{Binding EnoughSelected}"
- Content="Not in a hurry? Consider making more of your funds private by CoinJoining before making this transaction."
- HorizontalAlignment="Center" />
- </Panel>
- <c:AdorningContentControl ClipToBounds="False" IsAdornmentVisible="{Binding IsWarningOpen}" RevealMode="Manual" DockPanel.Dock="Top" VerticalAlignment="Top">
- <c:AdorningContentControl.Adornment>
- <!-- Private funds warning -->
- <c:InfoMessage Classes="overlay" Padding="15" MaxWidth="400" Margin="0 0 0 -55" Foreground="{DynamicResource SystemErrorTextColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom">
- <TextBlock Text="Warning, using both private and non-private funds in the same transaction can destroy your privacy." TextWrapping="Wrap" />
+ <c:InfoMessage Content="Warning, using both private and non-private funds in the same transaction can destroy your privacy."
+ IsVisible="{Binding IsWarningOpen}" Foreground="{DynamicResource SystemErrorTextColor}" />
+
+ <c:InfoMessage Content="Not in a hurry? Consider making more of your funds private by CoinJoining before making this transaction.">
+ <c:InfoMessage.IsVisible>
+ <MultiBinding Converter="{x:Static BoolConverters.And}">
+ <Binding Path="EnoughSelected" />
+ <Binding Path="IsWarningOpen" Converter="{x:Static BoolConverters.Not}"/>
+ </MultiBinding>
+ </c:InfoMessage.IsVisible>
</c:InfoMessage>
- </c:AdorningContentControl.Adornment>
+ </StackPanel>
<!-- List -->
<DataGrid AutoGenerateColumns="False"
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
- </c:AdorningContentControl>
</DockPanel>
</c:ContentArea>
</UserControl>

use InfoMessage control for warning message