brokiem.Egolds.Avalonia.Xaml.Interactions.Animated
11.2.0
dotnet add package brokiem.Egolds.Avalonia.Xaml.Interactions.Animated --version 11.2.0
NuGet\Install-Package brokiem.Egolds.Avalonia.Xaml.Interactions.Animated -Version 11.2.0
<PackageReference Include="brokiem.Egolds.Avalonia.Xaml.Interactions.Animated" Version="11.2.0" />
paket add brokiem.Egolds.Avalonia.Xaml.Interactions.Animated --version 11.2.0
#r "nuget: brokiem.Egolds.Avalonia.Xaml.Interactions.Animated, 11.2.0"
// Install brokiem.Egolds.Avalonia.Xaml.Interactions.Animated as a Cake Addin #addin nuget:?package=brokiem.Egolds.Avalonia.Xaml.Interactions.Animated&version=11.2.0 // Install brokiem.Egolds.Avalonia.Xaml.Interactions.Animated as a Cake Tool #tool nuget:?package=brokiem.Egolds.Avalonia.Xaml.Interactions.Animated&version=11.2.0
Avalonia.Xaml.Interactions.Animated
Avalonia.Xaml.Interactions.Animated is a simple library for Avalonia UI that introduces smooth animation support for vertical scrolling in the ScrollViewer
. This library adds a smooth scroll effect to improve the user experience, especially for content with a lot of scrolling.
Dependencies
This library depends on the Avalonia.Xaml.Interactivity
package. Make sure you have it installed in your project:
- NuGet Package: Avalonia.Xaml.Interactivity v11.2.0
- GitHub Repository: AvaloniaUI/Avalonia.Xaml.Behaviors
Installation
You can install Avalonia.Xaml.Interactions.Animated
via NuGet:
Install-Package Egolds.Avalonia.Xaml.Interactions.Animated
Or, if you prefer, download the .dll
file directly from the Releases section of this repository and add it to your project references manually.
Usage
To use VerticalScrollViewerAnimatedBehavior
in your .axaml
files, follow these steps:
Step 1: Add the Namespace
Include the namespace in your .axaml
file:
xmlns:ia="using:Avalonia.Xaml.Interactions.Animated"
Step 2: Attach the Behavior
The animation effect is very easy to apply. Simply add <ia:VerticalScrollViewerAnimatedBehavior/>
to the Interaction.Behaviors
collection of your ScrollViewer:
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden">
<Interaction.Behaviors>
<ia:VerticalScrollViewerAnimatedBehavior/>
</Interaction.Behaviors>
</ScrollViewer>
License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Avalonia (>= 11.2.0)
- Avalonia.Xaml.Interactivity (>= 11.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
11.2.0 | 99 | 11/24/2024 |