2024-02-05 23:08:37 -08:00
|
|
|
using Avalonia.Controls;
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
namespace SourceGit.Views
|
|
|
|
{
|
|
|
|
public partial class StashesPage : UserControl
|
|
|
|
{
|
|
|
|
public StashesPage()
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
InitializeComponent();
|
|
|
|
}
|
2024-05-30 00:13:59 -07:00
|
|
|
|
|
|
|
private void OnStashContextRequested(object sender, ContextRequestedEventArgs e)
|
|
|
|
{
|
|
|
|
if (DataContext is ViewModels.StashesPage vm && sender is Border border)
|
|
|
|
{
|
|
|
|
var menu = vm.MakeContextMenu(border.DataContext as Models.Stash);
|
|
|
|
border.OpenContextMenu(menu);
|
|
|
|
}
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
2024-02-05 23:08:37 -08:00
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
}
|