Polish scrolling
MODIFY
WalletWasabi.Fluent/Styles/ScrollViewer.axaml
WalletWasabi.Fluent/Styles/ScrollViewer.axaml
</Design.PreviewWith>
<Style Selector="ScrollViewer">
- <Setter Property="Background"
- Value="Transparent" />
+ <Setter Property="Background" Value="Transparent" />
<Setter Property="Template">
<ControlTemplate>
<Grid ColumnDefinitions="*,Auto" RowDefinitions="*,Auto">
<Setter Property="OpacityMask">
<Setter.Value>
<LinearGradientBrush StartPoint="0%,100%" EndPoint="0%,0%">
- <GradientStop Color="Black" Offset="0.9"></GradientStop>
- <GradientStop Color="Transparent" Offset="1"></GradientStop>
+ <GradientStop Color="Black" Offset="0.9" />
+ <GradientStop Color="Transparent" Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="OpacityMask">
<Setter.Value>
<LinearGradientBrush StartPoint="0%,0%" EndPoint="0%,100%">
- <GradientStop Color="#00000000" Offset="0.0"></GradientStop>
- <GradientStop Color="Black" Offset="0.2"></GradientStop>
- <GradientStop Color="Black" Offset="0.8"></GradientStop>
- <GradientStop Color="#00000000" Offset="1"></GradientStop>
+ <GradientStop Color="#00000000" Offset="0.0" />
+ <GradientStop Color="Black" Offset="0.2" />
+ <GradientStop Color="Black" Offset="0.8" />
+ <GradientStop Color="#00000000" Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
Visibility="{TemplateBinding VerticalScrollBarVisibility}"
Grid.Column="1"
Focusable="False" />
- <Panel x:Name="PART_ScrollBarsSeparator" Grid.Row="1" Grid.Column="1" Background="{DynamicResource ScrollViewerScrollBarsSeparatorBackground}" />
+ <Panel x:Name="PART_ScrollBarsSeparator" Grid.Row="1" Grid.Column="1"
+ Background="{DynamicResource ScrollViewerScrollBarsSeparatorBackground}" />
<!-- Scroll hints -->
- <Viewbox x:Name="TopCue" Classes="ScrollViewerCuePath" VerticalAlignment="Top">
- <Viewbox.IsVisible>
+ <RepeatButton x:Name="TopCue"
+ VerticalAlignment="Top"
+ Command="{Binding LineUp, RelativeSource={RelativeSource TemplatedParent}}">
+ <RepeatButton.IsVisible>
<MultiBinding Converter="{x:Static converters:MenuScrollingVisibilityConverter.Instance}"
ConverterParameter="0">
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="VerticalScrollBarVisibility" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Extent.Height" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Viewport.Height" />
</MultiBinding>
- </Viewbox.IsVisible>
+ </RepeatButton.IsVisible>
+ <Viewbox Classes="ScrollViewerCuePath">
<Path Data="M 0 4 L 8 4 L 4 0 Z" Classes="ScrollViewerCuePath" />
</Viewbox>
+ </RepeatButton>
- <Viewbox x:Name="BottomCue" Classes="ScrollViewerCuePath" Stretch="Fill" Grid.ColumnSpan="2" Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" >
- <Viewbox.IsVisible>
+ <RepeatButton x:Name="BottomCue"
+ Command="{Binding LineDown, RelativeSource={RelativeSource TemplatedParent}}"
+ Grid.Column="0" VerticalAlignment="Bottom">
+ <RepeatButton.IsVisible>
<MultiBinding Converter="{x:Static converters:MenuScrollingVisibilityConverter.Instance}"
ConverterParameter="100">
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="VerticalScrollBarVisibility" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Extent.Height" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Viewport.Height" />
</MultiBinding>
- </Viewbox.IsVisible>
+
+ </RepeatButton.IsVisible>
+ <Viewbox Classes="ScrollViewerCuePath" Stretch="Fill">
<Path Data="M 0 0 L 4 4 L 8 0 Z" Classes="ScrollViewerCuePath" />
</Viewbox>
+ </RepeatButton>
</Grid>
</ControlTemplate>
</Style>
<Style Selector="Path.ScrollViewerCuePath">
- <Setter Property="Fill" Value="{StaticResource AcrylicTrimForeground}"></Setter>
+ <Setter Property="Fill" Value="{StaticResource AcrylicTrimForeground}" />
</Style>
<Style Selector="Viewbox.ScrollViewerCuePath">
<Setter Property="(Grid.ColumnSpan)" Value="2" />
</Style>
+ <Style Selector="RepeatButton">
+ <Setter Property="HorizontalAlignment" Value="Stretch" />
+ <Setter Property="Grid.ColumnSpan" Value="2"/>
+ <Setter Property="Background" Value="Transparent"></Setter>
+ </Style>
+
+ <Style Selector="ScrollBar RepeatButton">
+ <Setter Property="IsVisible" Value="False" />
+ </Style>
+
</Styles>
\ No newline at end of file

Polish scrolling