File size: 1,969 Bytes
d225914
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
<Window x:Class="WpfEditor.FindDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="查找" Height="150" Width="400"
        WindowStartupLocation="CenterOwner"
        ResizeMode="NoResize"
        ShowInTaskbar="False"
        Topmost="True">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <!-- 查找文本输入 -->
        <Grid Grid.Row="0" Margin="0,0,0,10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            
            <Label Grid.Column="0" Content="查找内容:" VerticalAlignment="Center" Margin="0,0,10,0"/>
            <TextBox x:Name="SearchTextBox" Grid.Column="1" Height="25" VerticalAlignment="Center"/>
        </Grid>
        
        <!-- 选项 -->
        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,0,0,10">
            <CheckBox x:Name="MatchCaseCheckBox" Content="区分大小写" Margin="0,0,20,0" VerticalAlignment="Center"/>
            <CheckBox x:Name="WholeWordCheckBox" Content="全字匹配" VerticalAlignment="Center"/>
        </StackPanel>
        
        <!-- 按钮 -->
        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="FindPreviousButton" Content="上一个" Width="80" Height="25" Margin="0,0,10,0" Click="FindPreviousButton_Click"/>
            <Button x:Name="FindNextButton" Content="下一个" Width="80" Height="25" Margin="0,0,10,0" Click="FindNextButton_Click"/>
            <Button x:Name="CloseButton" Content="关闭" Width="80" Height="25" Click="CloseButton_Click"/>
        </StackPanel>
    </Grid>
</Window>