Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/SearchPanel.xaml
T
2026-04-23 19:06:58 +08:00

72 lines
3.0 KiB
XML

<UserControl x:Class="QuickLook.Plugin.CsvViewer.SearchPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
MinWidth="360"
MinHeight="36"
mc:Ignorable="d">
<Border Padding="6"
Background="{DynamicResource WindowBackground}"
BorderBrush="#102E2E3E"
BorderThickness="1"
CornerRadius="4"
SnapsToDevicePixels="True">
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<!-- Search -->
<TextBox x:Name="searchTextBox"
Width="180"
Margin="0,0,8,0"
VerticalContentAlignment="Center"
FocusVisualStyle="{x:Null}"
KeyDown="SearchTextBox_KeyDown"
TextChanged="SearchTextBox_TextChanged" />
<!-- Match case -->
<CheckBox x:Name="matchCaseToggle"
Margin="0,0,8,0"
VerticalAlignment="Center"
Checked="MatchCaseToggle_Checked"
Unchecked="MatchCaseToggle_Checked" />
<!-- Previous matches -->
<Button x:Name="previousButton"
Margin="0,0,4,0"
Click="PreviousButton_Click">
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Text="&#xe76b;" />
</Button>
<!-- Next matches -->
<Button x:Name="nextButton"
Margin="0,0,8,0"
Click="NextButton_Click">
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Text="&#xe76c;" />
</Button>
<!-- No matches -->
<TextBlock x:Name="matchCountTextBlock"
VerticalAlignment="Center"
Foreground="{DynamicResource WindowTextForeground}"
Text="" />
<Button x:Name="closeButton"
Margin="8,0,0,0"
Click="CloseButton_Click">
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Text="&#xe711;" />
</Button>
</StackPanel>
</Border>
</UserControl>