Added initial back button implementation (without styles)
MODIFY
WalletWasabi.Fluent/Controls/ContentArea.axaml
WalletWasabi.Fluent/Controls/ContentArea.axaml
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls">
<Design.PreviewWith>
<Panel Background="{DynamicResource RegionColor}">
- <c:ContentArea Width="400" Height="200"
+ <c:ContentArea Width="500" Height="400"
Title="Add a Wallet"
+ EnableBack="True"
+ EnableCancel="True" CancelContent="Cancel"
+ EnableNext="True" NextContent="Continue"
Caption="Type in your Wallets name and select an option below:">
This is the content.
</c:ContentArea>
<Style Selector="c|ContentArea">
<Setter Property="Template">
<ControlTemplate>
- <DockPanel>
+ <DockPanel Margin="40">
<StackPanel DockPanel.Dock="Top" Spacing="10" Margin="0 0 0 40">
+ <DockPanel>
+ <Button Margin="-40,0,0,0" Command="{Binding BackCommand}" IsVisible="{TemplateBinding EnableBack}" Background="Transparent">
+ <PathIcon Data="{StaticResource arrow_left_regular}" Width="16"/>
+ </Button>
<ContentPresenter Name="PART_TitlePresenter" Content="{TemplateBinding Title}" />
+ </DockPanel>
<ContentPresenter Name="PART_CaptionPresenter" Content="{TemplateBinding Caption}" />
</StackPanel>
<Panel DockPanel.Dock="Bottom">

MODIFY
WalletWasabi.Fluent/Controls/ContentArea.axaml.cs
WalletWasabi.Fluent/Controls/ContentArea.axaml.cs
@@ -12,6 +12,9 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<object> CaptionProperty =
AvaloniaProperty.Register<ContentArea, object>(nameof(Caption));
+ public static readonly StyledProperty<bool> EnableBackProperty =
+ AvaloniaProperty.Register<ContentArea, bool>(nameof(EnableBack));
+
public static readonly StyledProperty<bool> EnableCancelProperty =
AvaloniaProperty.Register<ContentArea, bool>(nameof(EnableCancel));
@@ -39,6 +42,12 @@ namespace WalletWasabi.Fluent.Controls
set => SetValue(CaptionProperty, value);
}
+ public bool EnableBack
+ {
+ get => GetValue(EnableBackProperty);
+ set => SetValue(EnableBackProperty, value);
+ }
+
public bool EnableCancel
{
get => GetValue(EnableCancelProperty);

Added initial back button implementation (without styles)