Global setting ScrollViewer AllowAutoHide = False for desktop

This commit is contained in:
2dust 2025-03-29 20:42:02 +08:00
parent e31cd0e199
commit bf83dbdfea
2 changed files with 11 additions and 2 deletions

View file

@ -7,10 +7,19 @@
<Style Selector="DataGrid">
<Setter Property="RowHeight" Value="24" />
<Setter Property="ScrollViewer.AllowAutoHide" Value="False" />
</Style>
<Style Selector="PathIcon">
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="16" />
</Style>
<Style Selector="TextBox">
<Setter Property="ScrollViewer.AllowAutoHide" Value="False" />
</Style>
<Style Selector="ScrollViewer">
<Setter Property="AllowAutoHide" Value="False" />
</Style>
</Styles>

View file

@ -81,11 +81,11 @@
BorderThickness="1"
CanUserReorderColumns="True"
CanUserResizeColumns="True"
Classes.InsetContent="True"
GridLinesVisibility="All"
HeadersVisibility="All"
IsReadOnly="True"
ItemsSource="{Binding ProfileItems}"
ScrollViewer.AllowAutoHide="False">
ItemsSource="{Binding ProfileItems}">
<DataGrid.KeyBindings>
<KeyBinding Command="{Binding Export2ShareUrlCmd}" Gesture="Ctrl+C" />
<KeyBinding Command="{Binding SetDefaultServerCmd}" Gesture="Enter" />