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"> <Style Selector="DataGrid">
<Setter Property="RowHeight" Value="24" /> <Setter Property="RowHeight" Value="24" />
<Setter Property="ScrollViewer.AllowAutoHide" Value="False" />
</Style> </Style>
<Style Selector="PathIcon"> <Style Selector="PathIcon">
<Setter Property="Width" Value="16" /> <Setter Property="Width" Value="16" />
<Setter Property="Height" Value="16" /> <Setter Property="Height" Value="16" />
</Style> </Style>
<Style Selector="TextBox">
<Setter Property="ScrollViewer.AllowAutoHide" Value="False" />
</Style>
<Style Selector="ScrollViewer">
<Setter Property="AllowAutoHide" Value="False" />
</Style>
</Styles> </Styles>

View file

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