A rive animation player control for Avalonia.
Install NuGet package https://www.nuget.org/packages/Rive/
<Application.Styles>
<!-- ... -->
<StyleInclude Source="avares://Rive/RivePlayer.axaml" />
</Application.Styles>
xmlns:rive="using:Rive"
<rive:RivePlayer x:Name="RivePlayer"
Width="600"
Height="600"
DrawInBackground="True"
Source="/Assets/animated-login-screen.riv">
<rive:BoolInput Target="isChecking"
Value="{Binding #IsChecking.IsChecked, Mode=OneWay}" />
<rive:NumberInput Target="numLook"
Value="{Binding #NumLook.Value, Mode=OneWay}" />
<rive:BoolInput Target="isHandsUp"
Value="{Binding #IsHandsUp.IsChecked, Mode=OneWay}" />
<rive:TriggerInput x:Name="FailureTrigger"
Target="trigFail" />
<rive:TriggerInput x:Name="SuccessTrigger"
Target="trigSuccess" />
</rive:RivePlayer>
Source="/Assets/animated-login-screen.riv"
Source="https://public.rive.app/community/runtime-files/2244-4463-animated-login-screen.riv"
- https://rive.app/
- https://github.com/rive-app/rive-cpp
- https://github.com/rive-app/rive-sharp
- https://www.nuget.org/packages/Rive.RiveSharp/
Based on sources from CommunityToolkit
RivePlayer is licensed under the MIT license.