|
1 | | -<Window x:Class="LibVideo.MainWindow" |
| 1 | +<Window x:Class="LibVideo.MainWindow" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
11 | 11 |
|
12 | 12 |
|
13 | 13 | <Grid> |
14 | | - <TextBox x:Name="dirTxt" HorizontalAlignment="Left" Height="113" Margin="630,10,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="147" TextChanged="dirTextBox_TextChanged"/> |
15 | | - <Button Content="添加视频目录" HorizontalAlignment="Left" Height="27" Margin="669,128,0,0" VerticalAlignment="Top" Width="80" Click="dirButton_Click"/> |
| 14 | + <ListBox x:Name="dirListUI" HorizontalAlignment="Left" Height="113" Margin="630,10,0,0" VerticalAlignment="Top" Width="147" Panel.ZIndex="1" /> |
| 15 | + <Button Content="添加视频目录" HorizontalAlignment="Left" Height="27" Margin="630,128,0,0" VerticalAlignment="Top" Width="70" Click="dirButton_Click" IsEnabled="True" IsHitTestVisible="True" Panel.ZIndex="1" Background="LightBlue"/> |
| 16 | + <Button x:Name="btnDeleteDir" Content="删除选中" HorizontalAlignment="Left" Height="27" Margin="705,128,0,0" VerticalAlignment="Top" Width="70" Click="btnDeleteDir_Click" Background="#FFFF9999" Panel.ZIndex="1"/> |
16 | 17 |
|
17 | 18 |
|
18 | 19 | <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"> |
|
45 | 46 |
|
46 | 47 | </ScrollViewer> |
47 | 48 |
|
48 | | - <TextBox x:Name="keywords" HorizontalAlignment="Left" Height="28" Margin="190,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="251" TextChanged="keywords_TextChanged" /> |
| 49 | + <ComboBox x:Name="keywords" IsEditable="True" HorizontalAlignment="Left" Height="28" Margin="190,10,0,0" VerticalAlignment="Top" Width="221" TextBoxBase.TextChanged="keywords_TextChanged" KeyDown="keywords_KeyDown" Panel.ZIndex="1"/> |
| 50 | + <Button x:Name="btnPrevSearch" Content="<" HorizontalAlignment="Left" Height="28" Margin="415,10,0,0" VerticalAlignment="Top" Width="25" Click="btnPrevSearch_Click" ToolTip="上一个搜索" Panel.ZIndex="1"/> |
| 51 | + <Button x:Name="btnNextSearch" Content=">" HorizontalAlignment="Left" Height="28" Margin="445,10,0,0" VerticalAlignment="Top" Width="25" Click="btnNextSearch_Click" ToolTip="下一个搜索" Panel.ZIndex="1"/> |
49 | 52 | <Image Grid.Column="2" HorizontalAlignment="Left" Height="26" Margin="62.667,297,0,0" VerticalAlignment="Top" Width="113"/> |
50 | 53 | <Label Content="搜索:" HorizontalAlignment="Left" Height="37" Margin="143,10,0,0" VerticalAlignment="Top" Width="63"/> |
51 | 54 |
|
|
58 | 61 | <TextBlock x:Name="itemsAddedLast24HoursText"/> |
59 | 62 | </StatusBarItem> |
60 | 63 | </StatusBar> |
| 64 | + |
| 65 | + <!-- Loading Overlay --> |
| 66 | + <Grid x:Name="LoadingOverlay" Background="#99000000" Panel.ZIndex="100" Visibility="Collapsed"> |
| 67 | + <TextBlock Text="正在加载文件,请稍候..." Foreground="White" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 68 | + </Grid> |
61 | 69 | </Grid> |
62 | 70 |
|
63 | 71 | </Window> |
0 commit comments