sourcegit/src/SourceGit/Views/CommitBaseInfo.axaml.cs
2024-03-20 02:38:28 -05:00

22 lines
No EOL
532 B
C#

using Avalonia.Controls;
using Avalonia.Input;
namespace SourceGit.Views
{
public partial class CommitBaseInfo : UserControl
{
public CommitBaseInfo()
{
InitializeComponent();
}
private void OnParentSHAPressed(object sender, PointerPressedEventArgs e)
{
if (DataContext is ViewModels.CommitDetail detail)
{
detail.NavigateTo((sender as Control).DataContext as string);
}
e.Handled = true;
}
}
}