Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes authored Nov 11, 2022
1 parent 2006307 commit dc33ae9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
# RivePlayer

[![NuGet](https://img.shields.io/nuget/v/Rive.svg)](https://www.nuget.org/packages/Rive)
[![NuGet](https://img.shields.io/nuget/dt/Rive.svg)](https://www.nuget.org/packages/Rive)

A rive animation player control for Avalonia.

## Usage

https://www.nuget.org/packages/Rive/

```xaml
xmlns:rive="using:Rive"
```

```xaml
<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>
```

```xaml
Source="/Assets/animated-login-screen.riv"
```

```xaml
Source="https://public.rive.app/community/runtime-files/2244-4463-animated-login-screen.riv"
```

## License

RivePlayer is licensed under the [MIT license](LICENSE.TXT).

0 comments on commit dc33ae9

Please sign in to comment.