public override async Task OnInitializing() { await base.OnInitializing(); ForegroundStack.Y.Set(10); await SunBox.Animate(new Animation { Duration = 100000.Milliseconds(), Change = () => SunBox.Rotation(360), Repeats = 60 }); }
public override async Task OnInitializing() { await base.OnInitializing(); ForegroundStack.Y.Set(10); await SunBox.Animate(new Animation { Duration = 100000.Milliseconds(), Change = () => SunBox.Rotation(360), Repeats = 600 }); await CloudBox.Animate(new Animation { Change = () => CloudBox.Animate(2.Seconds(), x => x.Margin(left: 150), x => x.Visible = false), Repeats = 100 }); }