Skip to content

Commit 697ab42

Browse files
committed
reset selection status while refresh
1 parent 3e18131 commit 697ab42

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/FlaUInspect/ViewModels/MainViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public AutomationType SelectedAutomationType {
132132

133133
public ICommand RefreshCommand =>
134134
_refreshCommand ??= new RelayCommand(_ => {
135+
EnableHoverMode = false;
136+
EnableFocusTrackingMode = false;
137+
EnableHighLightSelectionMode = false;
135138
Elements.Clear();
136139
Initialize();
137140
});

src/FlaUInspect/Views/MainWindow.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@
110110

111111
</Style>
112112
</Grid.Resources>
113-
<StackPanel HorizontalAlignment="Left"
113+
<StackPanel Height="40"
114+
HorizontalAlignment="Left"
115+
VerticalAlignment="Top"
114116
Orientation="Horizontal">
115117
<Button Command="{Binding CaptureSelectedItemCommand}"
116118
Style="{StaticResource RibbonButtonStyle}"
@@ -412,7 +414,8 @@
412414
</GroupBox>
413415
</Grid>
414416
</DockPanel>
415-
<Grid Background="#d0000000"
417+
<Grid d:Visibility="Collapsed"
418+
Background="#d0000000"
416419
Visibility="{Binding IsInfoVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
417420
<Border Width="600"
418421
Height="400"

0 commit comments

Comments
 (0)