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