From 3ba357b691939c44f9059e29284e913e4a1b9783 Mon Sep 17 00:00:00 2001 From: Gehongyan Date: Thu, 5 Mar 2026 23:16:29 +0800 Subject: [PATCH] Fix TextBox MaxLines property not constraining height in Semi theme (#753) * Initial plan * Fix TextBox MaxLines property by adding Name=PART_ScrollViewer to ScrollViewer elements Co-authored-by: gehongyan <21241496+gehongyan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- src/Semi.Avalonia/Controls/TextBox.axaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Semi.Avalonia/Controls/TextBox.axaml b/src/Semi.Avalonia/Controls/TextBox.axaml index 3694255..f76022e 100644 --- a/src/Semi.Avalonia/Controls/TextBox.axaml +++ b/src/Semi.Avalonia/Controls/TextBox.axaml @@ -59,6 +59,7 @@ Foreground="{DynamicResource TextBoxInnerForeground}" IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=InnerLeftContent, Converter={x:Static ObjectConverters.IsNotNull}}" />