mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
refactor<*>: rewrite all with AvaloniaUI
This commit is contained in:
parent
0136904612
commit
2a62596999
521 changed files with 19780 additions and 23244 deletions
17
src/Views/CommitBaseInfo.axaml.cs
Normal file
17
src/Views/CommitBaseInfo.axaml.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue