LunarMind/Dialogs/PaddingInputBox.xaml

(完整代码) 2KB

<Window x:Class="SHomeWorkshop.LunarMind.Dialogs.PaddingInputBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="TextInputBox" Width="300" SizeToContent="Height" ResizeMode="NoResize"
        TextOptions.TextFormattingMode="Display" FontFamily="SimSun" WindowStartupLocation="CenterOwner"
        Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"        
        Loaded="Window_Loaded"
        Icon="/LunarMind;component/Resources/LunarMind_Min.ico">
    <!--Icon="/LunarMind;component/Resources/LunarMind.ico"-->
    <!--XP下用这个图标会抛出异常-->
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <TextBlock Name="LbPrompt" Margin="10" MinHeight="24" TextWrapping="Wrap">
              请输入新的文档四边距(按【左、上、右、下】顺序)。
            <LineBreak />
              注意:①值应大于100,否则会异常;
            <LineBreak />
                 ②只有根标题时内间距不起作用。
        </TextBlock>

        <TextBox Name="TbxInput" Margin="10" Grid.Row="1" Height="24"/>

        <TextBlock Name="TbErrorMessage" Grid.Row="2" Foreground="Red" TextWrapping="Wrap"
                   VerticalAlignment="Center" Margin="10" MinHeight="20"/>
        
        <DockPanel Grid.Row="3" LastChildFill="False">
            <Button Name="BtnCancel" Width="72" Padding="2" VerticalAlignment="Center" IsCancel="True"
                    DockPanel.Dock="Right" Margin="10" Click="BtnCancel_Click">取消(_C)</Button>
            <Button Name="BtnOk" Width="72" Padding="2" VerticalAlignment="Center" IsDefault="True"
                    DockPanel.Dock="Right" Margin="10" Click="BtnOk_Click">确定(_O)</Button>
            
        </DockPanel>

    </Grid>
</Window>

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

AI 解读 AI

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

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