From 3f6b59d0edfe013522f3a752e27b98c32c231826 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 18 May 2023 23:07:34 +0200 Subject: [PATCH] Hook up BringIntoViewOnFocusChange in templates. --- src/Avalonia.Themes.Fluent/Controls/ListBox.xaml | 3 ++- src/Avalonia.Themes.Fluent/Controls/TextBox.xaml | 3 ++- src/Avalonia.Themes.Fluent/Controls/TreeView.xaml | 3 ++- src/Avalonia.Themes.Simple/Controls/ListBox.xaml | 1 + src/Avalonia.Themes.Simple/Controls/TextBox.xaml | 1 + src/Avalonia.Themes.Simple/Controls/TreeView.xaml | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Avalonia.Themes.Fluent/Controls/ListBox.xaml b/src/Avalonia.Themes.Fluent/Controls/ListBox.xaml index e2273cd487..05bbbe9558 100644 --- a/src/Avalonia.Themes.Fluent/Controls/ListBox.xaml +++ b/src/Avalonia.Themes.Fluent/Controls/ListBox.xaml @@ -36,7 +36,8 @@ VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}" IsScrollChainingEnabled="{TemplateBinding (ScrollViewer.IsScrollChainingEnabled)}" IsScrollInertiaEnabled="{TemplateBinding (ScrollViewer.IsScrollInertiaEnabled)}" - AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}"> + AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}" + BringIntoViewOnFocusChange="{TemplateBinding (ScrollViewer.BringIntoViewOnFocusChange)}"> + AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}" + BringIntoViewOnFocusChange="{TemplateBinding (ScrollViewer.BringIntoViewOnFocusChange)}"> + AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}" + BringIntoViewOnFocusChange="{TemplateBinding (ScrollViewer.BringIntoViewOnFocusChange)}"> diff --git a/src/Avalonia.Themes.Simple/Controls/ListBox.xaml b/src/Avalonia.Themes.Simple/Controls/ListBox.xaml index eaa1f914ca..a51fcbf72e 100644 --- a/src/Avalonia.Themes.Simple/Controls/ListBox.xaml +++ b/src/Avalonia.Themes.Simple/Controls/ListBox.xaml @@ -17,6 +17,7 @@ CornerRadius="{TemplateBinding CornerRadius}"> diff --git a/src/Avalonia.Themes.Simple/Controls/TreeView.xaml b/src/Avalonia.Themes.Simple/Controls/TreeView.xaml index 8630c14aa2..f2f451fe6f 100644 --- a/src/Avalonia.Themes.Simple/Controls/TreeView.xaml +++ b/src/Avalonia.Themes.Simple/Controls/TreeView.xaml @@ -15,6 +15,7 @@ BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}">