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