diff --git a/src/Avalonia.Controls/TextBox.cs b/src/Avalonia.Controls/TextBox.cs
index 947830b217..ce7d2f7e5f 100644
--- a/src/Avalonia.Controls/TextBox.cs
+++ b/src/Avalonia.Controls/TextBox.cs
@@ -426,16 +426,24 @@ namespace Avalonia.Controls
set { SetValue(TextAlignmentProperty, value); }
}
+ ///
+ /// Gets or sets the placeholder or descriptive text that is displayed even if the
+ /// property is not yet set.
+ ///
public string? Watermark
{
- get { return GetValue(WatermarkProperty); }
- set { SetValue(WatermarkProperty, value); }
+ get => GetValue(WatermarkProperty);
+ set => SetValue(WatermarkProperty, value);
}
+ ///
+ /// Gets or sets a value indicating whether the will still be shown above the
+ /// even after a text value is set.
+ ///
public bool UseFloatingWatermark
{
- get { return GetValue(UseFloatingWatermarkProperty); }
- set { SetValue(UseFloatingWatermarkProperty, value); }
+ get => GetValue(UseFloatingWatermarkProperty);
+ set => SetValue(UseFloatingWatermarkProperty, value);
}
public object InnerLeftContent