LunarPresentation/Dialogs/ReplaceDialog.xaml

(完整代码) 2KB

<Window x:Class="SHomeWorkshop.LunarPresentation.Dialogs.ReplaceDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Icon="/LunarPresentation;component/Resources/Icons/Taiji.ico"
        FontFamily="SimSun" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner"
        Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
        TextOptions.TextFormattingMode="Display" Loaded="Window_Loaded"
        Closed="Window_Closed"
        Title="Lunar Presentation - 替换" Height="155" Width="370">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition />
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="80"/>
        </Grid.ColumnDefinitions>

        <Label Grid.Row="0" Grid.Column="0"
               VerticalAlignment="Center">查找内容(_N):</Label>
        <Label Grid.Row="1" Grid.Column="0"
               VerticalAlignment="Center"
               HorizontalAlignment="Right">替换为(_P):</Label>

        <TextBox Name="tbxFindText" Grid.Row="0" Grid.Column="1" AcceptsReturn="False"
                 KeyDown="tbxFindText_KeyDown"
                 AcceptsTab="False" Grid.ColumnSpan="3" VerticalAlignment="Center"></TextBox>
        <TextBox Name="tbxReplaceText" Grid.Row="1" Grid.Column="1" AcceptsReturn="False"
                 KeyDown="tbxReplaceText_KeyDown"
                 AcceptsTab="False" Grid.ColumnSpan="3" VerticalAlignment="Center"></TextBox>
        <Button Name="btnNext" Grid.Row="3" Grid.Column="2"
                VerticalAlignment="Center" HorizontalAlignment="Center" Click="btnNext_Click">查找下一个(_N)</Button>

        <Button Name="btnReplace" Grid.Row="3" Grid.Column="3"
                VerticalAlignment="Center" HorizontalAlignment="Stretch" Click="btnReplace_Click">替换(_R)</Button>

        <TextBlock Foreground="DarkBlue" VerticalAlignment="Center"
                   Grid.Row="4" Grid.ColumnSpan="4">请注意:“查找/替换”操作均不支持“富文本块”。</TextBlock>
    </Grid>
</Window>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。