Features/textbox ibeam cursor
@@ -262,7 +262,6 @@ namespace Avalonia.Controls
protected override void OnTemplateApplied(TemplateAppliedEventArgs e)
{
_presenter = e.NameScope.Get<TextPresenter>("PART_TextPresenter");
- _presenter.Cursor = new Cursor(StandardCursorType.Ibeam);
if (IsFocused)
@@ -62,4 +62,7 @@
<Style Selector="TextBox:error /template/ Border#border">
<Setter Property="BorderBrush" Value="{DynamicResource ErrorBrush}"/>
</Style>
-</Styles>
+ <Style Selector="TextBox">
+ <Setter Property="Cursor" Value="IBeam" />
+ </Style>
+</Styles>