sourcegit/src/Views/FileHistories.axaml.cs

32 lines
729 B
C#
Raw Normal View History

using Avalonia.Controls;
using Avalonia.Input;
namespace SourceGit.Views
{
public partial class FileHistories : ChromelessWindow
{
public FileHistories()
{
InitializeComponent();
}
2024-07-14 00:55:15 -07:00
private void MaximizeOrRestoreWindow(object _, TappedEventArgs e)
{
if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal;
else
WindowState = WindowState.Maximized;
e.Handled = true;
}
2024-07-14 00:55:15 -07:00
private void BeginMoveWindow(object _, PointerPressedEventArgs e)
{
2024-08-06 00:12:44 -07:00
if (e.ClickCount == 1)
BeginMoveDrag(e);
2024-07-14 00:55:15 -07:00
2024-08-06 00:12:44 -07:00
e.Handled = true;
}
}
}