From 8bd8787d253c1a39728a9b4411169754f6b06bef Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 19 Aug 2024 17:24:39 +0800 Subject: [PATCH] feature: auto-focus when open a new page (#368) --- src/Views/Welcome.axaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Views/Welcome.axaml b/src/Views/Welcome.axaml index b926bada..ba127cfb 100644 --- a/src/Views/Welcome.axaml +++ b/src/Views/Welcome.axaml @@ -4,6 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c="using:SourceGit.Converters" xmlns:vm="using:SourceGit.ViewModels" + xmlns:v="using:SourceGit.Views" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="SourceGit.Views.Welcome" x:DataType="vm:Welcome"> @@ -19,7 +20,8 @@ Background="{DynamicResource Brush.Contents}" Watermark="{DynamicResource Text.Welcome.Search}" VerticalContentAlignment="Center" - Text="{Binding SearchFilter, Mode=TwoWay}"> + Text="{Binding SearchFilter, Mode=TwoWay}" + v:AutoFocusBehaviour.IsEnabled="True">