diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 43b28288..bdf5f226 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -203,6 +203,13 @@ FullMessage="{Binding #ThisControl.FullMessage}" HorizontalAlignment="Stretch" TextWrapping="Wrap"> + + + + + + + diff --git a/src/Views/CommitMessagePresenter.cs b/src/Views/CommitMessagePresenter.cs index 6f838509..c71c9687 100644 --- a/src/Views/CommitMessagePresenter.cs +++ b/src/Views/CommitMessagePresenter.cs @@ -5,8 +5,6 @@ using System.Threading.Tasks; using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Documents; -using Avalonia.Data; -using Avalonia.Data.Converters; using Avalonia.Input; using Avalonia.Threading; using Avalonia.VisualTree; @@ -26,21 +24,6 @@ namespace SourceGit.Views protected override Type StyleKeyOverride => typeof(SelectableTextBlock); - public CommitMessagePresenter() - { - var bindings = new MultiBinding() - { - Converter = BoolConverters.And, - Bindings = new[] - { - new Binding() { Path = "IsPointerOver", Source = this }, - new Binding() { Path = "(ToolTip.Tip)", Source = this, TypeResolver = (_, name) => name == "ToolTip" ? typeof(ToolTip) : null, Converter = ObjectConverters.IsNotNull }, - } - }; - - Bind(ToolTip.IsOpenProperty, bindings); - } - protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) { base.OnPropertyChanged(change);