From fab8c9de53da13fc64ac6e10a8178bc7dc223e10 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Thu, 29 Aug 2024 16:12:19 +0800
Subject: [PATCH] feat: update NonErrorTextBox.
---
src/Semi.Avalonia/Controls/TextBox.axaml | 181 +++++++++++++++++------
1 file changed, 134 insertions(+), 47 deletions(-)
diff --git a/src/Semi.Avalonia/Controls/TextBox.axaml b/src/Semi.Avalonia/Controls/TextBox.axaml
index 7779d5b..b4bfebb 100644
--- a/src/Semi.Avalonia/Controls/TextBox.axaml
+++ b/src/Semi.Avalonia/Controls/TextBox.axaml
@@ -24,35 +24,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -103,8 +74,8 @@
TextWrapping="{TemplateBinding TextWrapping}">
-
-
+
+
@@ -121,8 +92,7 @@
SelectionEnd="{TemplateBinding SelectionEnd}"
SelectionForegroundBrush="{TemplateBinding SelectionForegroundBrush}"
SelectionStart="{TemplateBinding SelectionStart}"
- Text="{TemplateBinding Text,
- Mode=TwoWay}"
+ Text="{TemplateBinding Text, Mode=TwoWay}"
TextAlignment="{TemplateBinding TextAlignment}"
TextWrapping="{TemplateBinding TextWrapping}" />
@@ -138,8 +108,7 @@
Name="PART_RevealButton"
Grid.Column="3"
Margin="4,0,0,0"
- IsChecked="{TemplateBinding RevealPassword,
- Mode=TwoWay}"
+ IsChecked="{TemplateBinding RevealPassword, Mode=TwoWay}"
IsVisible="False"
Theme="{StaticResource InputToggleButton}" />
-
+
@@ -282,7 +251,7 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
-
+
+ TextWrapping="{TemplateBinding TextWrapping}">
+
+
+
+
+
+
+
+
+
+
@@ -367,5 +361,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file