using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Labs.Lottie; using LehrerApp.Desktop.ViewModels.Groups; namespace LehrerApp.Desktop.Views.Groups; public partial class RandomStudentPickerWindow : Window { private bool _isSpinning; private DateTime _spinStartedAt; public RandomStudentPickerWindow() => InitializeComponent(); private async void OnDraw(object? sender, RoutedEventArgs e) { if (DataContext is not RandomStudentPickerViewModel vm || !vm.DrawCommand.CanExecute(null)) return; var card = this.FindControl("RevealCard"); var wheel = this.FindControl("WheelAnimation"); var button = this.FindControl