add increased width state
MODIFY
WalletWasabi.Fluent/Controls/Dialog.axaml
WalletWasabi.Fluent/Controls/Dialog.axaml
<Style Selector="c|Dialog[FullScreenEnabled=True] /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Margin" Value="16 0 16 16" />
</Style>
+
+ <!-- Dialog Increased width State -->
+ <Style Selector="c|Dialog[IncreasedWidthEnabled=True] /template/ Border#PART_Border">
+ <Setter Property="Margin" Value="0 40" />
+ </Style>
</Styles>

MODIFY
WalletWasabi.Fluent/Controls/Dialog.axaml.cs
WalletWasabi.Fluent/Controls/Dialog.axaml.cs
@@ -47,6 +47,9 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<bool> FullScreenEnabledProperty =
AvaloniaProperty.Register<Dialog, bool>(nameof(FullScreenEnabled));
+ public static readonly StyledProperty<bool> IncreasedWidthEnabledProperty =
+ AvaloniaProperty.Register<Dialog, bool>(nameof(IncreasedWidthEnabled));
+
public Dialog()
{
this.GetObservable(IsDialogOpenProperty).Subscribe(UpdateDelay);
@@ -56,7 +59,8 @@ namespace WalletWasabi.Fluent.Controls
{
var width = bounds.Width;
var height = bounds.Height;
- FullScreenEnabled = width < 740 && height < 580;
+ IncreasedWidthEnabled = width < 740;
+ FullScreenEnabled = IncreasedWidthEnabled && height < 580;
});
}
@@ -111,7 +115,13 @@ namespace WalletWasabi.Fluent.Controls
public bool FullScreenEnabled
{
get => GetValue(FullScreenEnabledProperty);
- set => SetValue(FullScreenEnabledProperty, value);
+ private set => SetValue(FullScreenEnabledProperty, value);
+ }
+
+ public bool IncreasedWidthEnabled
+ {
+ get => GetValue(IncreasedWidthEnabledProperty);
+ private set => SetValue(IncreasedWidthEnabledProperty, value);
}
private CancellationTokenSource? CancelPointerPressedDelay { get; set; }

add increased width state