sourcegit/src/Views/LoadingIcon.axaml.cs

28 lines
593 B
C#
Raw Normal View History

2024-05-30 01:12:28 -07:00
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
namespace SourceGit.Views
{
public partial class LoadingIcon : UserControl
{
public LoadingIcon()
{
IsHitTestVisible = false;
InitializeComponent();
}
protected override void OnLoaded(RoutedEventArgs e)
{
base.OnLoaded(e);
target.Classes.Add("rotating");
}
protected override void OnUnloaded(RoutedEventArgs e)
{
base.OnUnloaded(e);
target.Classes.Clear();
}
}
}