adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
568 stars 47 forks source link

Maui Skeleton #136

Closed iamnevir closed 1 year ago

iamnevir commented 1 year ago

How can i use HorusStudio.Maui.Skeleton in maui reactor, this have a little bit different and i cant find the way to use it :<. pls help me!

adospace commented 1 year ago

Hi, I've created a new repo for MauiReactor integrations: https://github.com/adospace/mauireactor-integration

I'll add it there

adospace commented 1 year ago

https://github.com/adospace/mauireactor-integration/tree/main/HorusStudio

seems pretty easy:

new VStack(spacing: 5)
{
    new Button("Toggle", () => SetState(s => s.IsBusy = !s.IsBusy)),

    new Frame
    {
        new Label("Label")
    }
    .BackgroundColor(Colors.Transparent)
    .Set(Skeleton.IsBusyProperty, State.IsBusy)
    .Set(Skeleton.BackgroundColorProperty, Color.FromArgb("#c6c6c5"))
    .Set(Skeleton.AnimationProperty, new FadeAnimation(500, null))
}