From 48f4aabb47a6128327cba950466dbb5a8362b218 Mon Sep 17 00:00:00 2001 From: Tom Laird-McConnell Date: Tue, 17 Dec 2024 09:15:13 -0800 Subject: [PATCH] plumbing --- .../Drawing/MoveConsoleCaretToPositionBrush.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs b/src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs index 90130794..eceb0f87 100644 --- a/src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs +++ b/src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs @@ -3,16 +3,23 @@ namespace Consolonia.Core.Drawing { - public class MoveConsoleCaretToPositionBrush : IImmutableBrush + public class MoveConsoleCaretToPositionBrush : AvaloniaObject, IImmutableBrush { + public static readonly StyledProperty CaretStyleProperty = + AvaloniaProperty.Register(nameof(CaretStyle)); + //todo: Search for B75ABC91-2CDD-4557-9201-16AC483C8D7B public double Opacity => 1; public ITransform Transform => null; public RelativePoint TransformOrigin => RelativePoint.TopLeft; /// - /// style of curosr + /// style of caret /// - public CaretStyle CaretStyle { get; set; } = CaretStyle.BlinkingBar; + public CaretStyle CaretStyle + { + get => GetValue(CaretStyleProperty); + set => SetValue(CaretStyleProperty, value); + } } } \ No newline at end of file