Quellcode durchsuchen

remove coercecaretindex (#14264)

Robert Mutniański vor 1 Jahr
Ursprung
Commit
f6bda07ae6
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.Properties.cs

+ 1 - 2
src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.Properties.cs

@@ -22,8 +22,7 @@ namespace Avalonia.Controls
         public static readonly StyledProperty<int> CaretIndexProperty =
         public static readonly StyledProperty<int> CaretIndexProperty =
             TextBox.CaretIndexProperty.AddOwner<AutoCompleteBox>(new(
             TextBox.CaretIndexProperty.AddOwner<AutoCompleteBox>(new(
                 defaultValue: 0,
                 defaultValue: 0,
-                defaultBindingMode:BindingMode.TwoWay,
-                coerce: TextBox.CoerceCaretIndex));
+                defaultBindingMode:BindingMode.TwoWay));
 
 
         public static readonly StyledProperty<string?> WatermarkProperty =
         public static readonly StyledProperty<string?> WatermarkProperty =
             TextBox.WatermarkProperty.AddOwner<AutoCompleteBox>();
             TextBox.WatermarkProperty.AddOwner<AutoCompleteBox>();