From 2bded9434bd434f0da89ce7d877092521b054ebc Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Sun, 1 Dec 2024 18:54:43 +0800 Subject: [PATCH 1/2] feat: add default Password character to TextBox. --- demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml | 5 ++--- src/Semi.Avalonia/Controls/TextBox.axaml | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml index b62fa68..c702346 100644 --- a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml @@ -20,12 +20,11 @@ Width="500" InnerLeftContent="http://" InnerRightContent=".com" /> - - + + @@ -379,6 +380,7 @@ From fe380f9b0bd503f9f3b5636acac048600f0a0ed2 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:34:39 +0800 Subject: [PATCH 2/2] feat: enhance TextBoxDemo. --- .../Pages/TextBoxDemo.axaml | 51 +++++-------------- 1 file changed, 14 insertions(+), 37 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml index c702346..025216f 100644 --- a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml @@ -4,79 +4,56 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:system="clr-namespace:System;assembly=netstandard" d:DesignHeight="800" d:DesignWidth="800" mc:Ignorable="d"> - - - - - - - - + + + - - - - + - + \ No newline at end of file