Skip to content

A rive animation player control for Avalonia.

License

Notifications You must be signed in to change notification settings

wieslawsoltes/RivePlayer

Repository files navigation

RivePlayer

NuGet NuGet

A rive animation player control for Avalonia.

Usage

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"

Resources

License

Based on sources from CommunityToolkit

RivePlayer is licensed under the MIT license.

About

A rive animation player control for Avalonia.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages