Change order of button so next/cancel are first in tab navigation
MODIFY
WalletWasabi.Fluent/Controls/ContentArea.axaml
WalletWasabi.Fluent/Controls/ContentArea.axaml
<Design.PreviewWith>
<Panel Background="{DynamicResource RegionColor}">
<c:ContentArea Width="500" Height="300"
- IsBusy="True"
+ IsBusy="False"
Title="Add a Wallet"
EnableBack="True"
EnableCancel="True" CancelContent="Cancel" FocusCancel="False"
<Panel IsHitTestVisible="False" Background="{TemplateBinding Background}" />
<c:ProgressRing Name="LoadingRing" IsIndeterminate="True" IsVisible="{TemplateBinding IsBusy}" />
<DockPanel Name="MainDockPanel" IsVisible="{Binding !#LoadingRing.IsVisible}">
- <Panel DockPanel.Dock="Top">
- <Panel IsHitTestVisible="False" Background="{TemplateBinding HeaderBackground}" />
- <StackPanel Name="PART_Header" Spacing="10">
- <DockPanel>
- <Button Margin="-31,0,0,0" Classes="plain" Command="{Binding BackCommand}"
- IsVisible="{TemplateBinding EnableBack}">
- <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>
<Panel DockPanel.Dock="Bottom" x:Name="PART_ButtonArea">
- <Button Name="PART_CancelButton" IsCancel="{TemplateBinding EnableCancel}"
- Classes="invisible" IsVisible="{TemplateBinding EnableCancel}"
+ <Button Name="PART_CancelButton"
+ IsCancel="{TemplateBinding EnableCancel}"
+ Classes="invisible"
+ IsVisible="{TemplateBinding EnableCancel}"
Content="{TemplateBinding CancelContent}"
HorizontalAlignment="Left" Command="{Binding CancelCommand}">
<i:Interaction.Behaviors>
</Button>
<StackPanel Orientation="Horizontal" Spacing="30" Margin="0 10" HorizontalAlignment="Right">
<Button IsVisible="{TemplateBinding EnableSkip}"
- Content="{TemplateBinding SkipContent}" Command="{Binding SkipCommand}"
- Classes="activeHyperLink skip" VerticalAlignment="Center" />
+ Content="{TemplateBinding SkipContent}"
+ Command="{Binding SkipCommand}"
+ Classes="activeHyperLink skip"
+ VerticalAlignment="Center" />
<Button Name="PART_NextButton" Classes="action"
IsVisible="{TemplateBinding EnableNext}"
- Content="{TemplateBinding NextContent}" Command="{Binding NextCommand}"
+ Content="{TemplateBinding NextContent}"
+ Command="{Binding NextCommand}"
IsDefault="True">
<i:Interaction.Behaviors>
<behaviors:FocusOnAttachedBehavior
</Button>
</StackPanel>
</Panel>
+
+ <Panel DockPanel.Dock="Top">
+ <Panel IsHitTestVisible="False" Background="{TemplateBinding HeaderBackground}" />
+ <StackPanel Name="PART_Header" Spacing="10">
+ <DockPanel>
+ <Button Margin="-31,0,0,0"
+ Classes="plain"
+ Command="{Binding BackCommand}"
+ IsVisible="{TemplateBinding EnableBack}">
+ <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>
+
<ScrollViewer x:Name="PART_ScrollViewer"
HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">

Change order of button so next/cancel are first in tab navigation