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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="brokiem.Egolds.Avalonia.Xaml.Interactions.Animated" Version="11.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add brokiem.Egolds.Avalonia.Xaml.Interactions.Animated --version 11.2.0                
#r "nuget: brokiem.Egolds.Avalonia.Xaml.Interactions.Animated, 11.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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                

Install via NuGet

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.

Demo Animation

Dependencies

This library depends on the Avalonia.Xaml.Interactivity package. Make sure you have it installed in your project:

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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 101 11/24/2024