|
|
<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> |