mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
28 lines
593 B
C#
28 lines
593 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|