File size: 2,378 Bytes
1c4658f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Window
    x:Class="FastSeek.WinUI.MainWindow"
    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"
    mc:Ignorable="d"
    Title="FastSeek">
    <Grid Background="{StaticResource BgBrush}">
        <Border Width="860" CornerRadius="18" Background="{StaticResource PanelBrush}" BorderBrush="#2F3B44" BorderThickness="1" Padding="14" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid RowDefinitions="Auto,*">
                <AutoSuggestBox x:Name="SearchBox" PlaceholderText="Search files and folders..." QueryIcon="Find" TextChanged="SearchBox_TextChanged" KeyDown="SearchBox_KeyDown" FontSize="20" Background="#14191D" BorderBrush="#2A333A" Foreground="White" />
                <ListView x:Name="ResultsList" Grid.Row="1" Margin="0,12,0,0" IsItemClickEnabled="True" ItemClick="ResultsList_ItemClick" SelectionMode="Single" Background="Transparent" Foreground="White">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <Grid Padding="8,6">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="58"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Border Grid.Column="0" Background="#132028" CornerRadius="8" Padding="8,3">
                                    <TextBlock Text="{Binding Kind}" Foreground="{StaticResource AccentBrush}" FontWeight="SemiBold"/>
                                </Border>
                                <StackPanel Grid.Column="1" Margin="10,0,0,0">
                                    <TextBlock Text="{Binding Name}" FontSize="15" TextTrimming="CharacterEllipsis"/>
                                    <TextBlock Text="{Binding FullPath}" FontSize="12" Foreground="#B9C2CC" TextTrimming="CharacterEllipsis"/>
                                </StackPanel>
                            </Grid>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
            </Grid>
        </Border>
    </Grid>
</Window>