From 3fe58d7ec5f27934bd05244aee52da18253e8a3b Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sun, 21 Jan 2024 17:36:16 -0600 Subject: [PATCH] Use DynamicData as resultcollection --- Flow.Launcher/ResultListBox.axaml | 6 +- Flow.Launcher/ViewModels/ResultViewModel.cs | 5 +- Flow.Launcher/ViewModels/ResultsViewModel.cs | 217 ++++++------------- 3 files changed, 67 insertions(+), 161 deletions(-) diff --git a/Flow.Launcher/ResultListBox.axaml b/Flow.Launcher/ResultListBox.axaml index f35b4be5c..ab9d5593d 100644 --- a/Flow.Launcher/ResultListBox.axaml +++ b/Flow.Launcher/ResultListBox.axaml @@ -12,12 +12,12 @@ SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" SelectionMode="AlwaysSelected" - AutoScrollToSelectedItem="False" + AutoScrollToSelectedItem="True" IsVisible="{Binding Visibility}" MaxHeight="{Binding MaxHeight}"> -