mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-27 10:15:50 +08:00
新增搜索功能,优化JS脚本选择窗口的用户体验
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
CornerRadius="8">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -77,11 +78,18 @@
|
||||
Padding="8,4" />
|
||||
</Grid>
|
||||
|
||||
<!-- 搜索框 -->
|
||||
<ui:TextBox Grid.Row="1"
|
||||
Margin="12,0,12,8"
|
||||
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}"
|
||||
PlaceholderText="搜索脚本名称或描述..."
|
||||
ClearButtonEnabled="True" />
|
||||
|
||||
<!-- 脚本列表 -->
|
||||
<ScrollViewer Grid.Row="1"
|
||||
<ScrollViewer Grid.Row="2"
|
||||
Margin="4,0,4,8"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<ListBox ItemsSource="{Binding JsScripts}"
|
||||
<ListBox ItemsSource="{Binding FilteredJsScripts}"
|
||||
SelectedItem="{Binding SelectedScript}"
|
||||
BorderThickness="0"
|
||||
Padding="0">
|
||||
|
||||
Reference in New Issue
Block a user