From d27acf269eee2b86feb9efb1356f51abb09bcfb4 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 | 170 +++++++++++++++++------
1 file changed, 124 insertions(+), 46 deletions(-)
diff --git a/src/Semi.Avalonia/Controls/TextBox.axaml b/src/Semi.Avalonia/Controls/TextBox.axaml
index fc59999..30b425c 100644
--- a/src/Semi.Avalonia/Controls/TextBox.axaml
+++ b/src/Semi.Avalonia/Controls/TextBox.axaml
@@ -24,35 +24,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -126,8 +97,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}" />
@@ -143,8 +113,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}" />
@@ -266,8 +235,8 @@
-
+
@@ -290,7 +259,7 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
-
+
+ TextWrapping="{TemplateBinding TextWrapping}">
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -460,4 +510,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+