-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2006307
commit dc33ae9
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |