|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Diagnostics; |
|
|
|
using Avalonia.Data; |
|
|
|
using Avalonia.Media; |
|
|
|
using Avalonia.Media.TextFormatting; |
|
|
|
using Avalonia.Metadata; |
|
|
|
@ -17,7 +18,7 @@ namespace Avalonia.Controls.Presenters |
|
|
|
public static readonly DirectProperty<TextPresenter, int> CaretIndexProperty = |
|
|
|
TextBox.CaretIndexProperty.AddOwner<TextPresenter>( |
|
|
|
o => o.CaretIndex, |
|
|
|
(o, v) => o.CaretIndex = v); |
|
|
|
(o, v) => o.CaretIndex = v, defaultBindingMode: BindingMode.TwoWay); |
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> RevealPasswordProperty = |
|
|
|
AvaloniaProperty.Register<TextPresenter, bool>(nameof(RevealPassword)); |
|
|
|
|