Motion.Avalonia 1.0.0

dotnet add package Motion.Avalonia --version 1.0.0
                    
NuGet\Install-Package Motion.Avalonia -Version 1.0.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="Motion.Avalonia" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Motion.Avalonia" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Motion.Avalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Motion.Avalonia --version 1.0.0
                    
#r "nuget: Motion.Avalonia, 1.0.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.
#:package Motion.Avalonia@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Motion.Avalonia&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Motion.Avalonia&version=1.0.0
                    
Install as a Cake Tool

Motion.Avalonia

Declarative, seekable, real-layout motion for Avalonia (net8.0, net10.0, net11.0 / Avalonia 12.0.0+).

Motion.Avalonia lets stable Avalonia controls move smoothly between unrelated live layouts (StateMotion, SequenceMotion, TimelineMotion) using real Measure and Arrange passes—without bitmap snapshots or scale transforms to imitate layout.

Install

dotnet add package Motion.Avalonia

Quick Start

Declare the XML namespace in AXAML:

xmlns:motion="using:Motion.Avalonia"

Keep target controls as direct children of MotionPanel with matching x:Name values on each MotionSlot:

<motion:MotionPanel>
  <motion:MotionPanel.Motion>
    <motion:StateMotion
      x:Name="EditorMotion"
      State="Quick"
      Duration="0:0:0.35"
      Easing="CubicEaseInOut">

      <motion:MotionState Key="Quick">
        <DataTemplate>
          <Grid>
            <motion:MotionSlot
              x:Name="Editor"
              MaxWidth="600"
              HorizontalAlignment="Center"/>
          </Grid>
        </DataTemplate>
      </motion:MotionState>

      <motion:MotionState Key="Advanced">
        <DataTemplate>
          <DockPanel HorizontalSpacing="24">
            <motion:MotionSlot
              x:Name="Editor"
              MaxWidth="420"
              DockPanel.Dock="Left"/>
            <motion:MotionSlot x:Name="Preview"/>
          </DockPanel>
        </DataTemplate>
      </motion:MotionState>
    </motion:StateMotion>
  </motion:MotionPanel.Motion>

  <Border x:Name="Editor"/>
  <Border x:Name="Preview"/>
</motion:MotionPanel>

Switch EditorMotion.State to "Advanced" to trigger a smooth transition with interruption and retargeting support.

Motion Models

  • StateMotion: Named state transitions with directed MotionEdge timing/easing overrides and smooth mid-flight interruption.
  • SequenceMotion: Scrubbable normalized Progress (0..1 / 0%..100% Cue keyframes) driven by ScrollViewer, Slider, or gestures.
  • TimelineMotion: Authored absolute KeyTime keyframes with a frame-aligned Player (Play, Pause, Loop, scrubbing Time).

Documentation & License

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.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
1.0.0 0 11/25/2026