LunarPresentation/Dialogs/InputWindow.xaml

(完整代码) 2KB

<Window x:Class="SHomeWorkshop.LunarPresentation.Dialogs.InputWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:cp="clr-namespace:SHomeWorkshop.LunarPresentation"
        Icon="/LunarPresentation;component/Resources/Icons/Taiji.ico"
        Title="{x:Static Member=cp:Globals.appName}" WindowStartupLocation="CenterOwner"
        Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
        WindowStyle="ToolWindow" TextOptions.TextFormattingMode="Display"
        MinWidth="240" MaxWidth="400" SizeToContent="WidthAndHeight" FontFamily="SimSun">

    <Window.Resources>
        <VisualBrush x:Key="textBoxBackground" Stretch="None" AlignmentX="Left">
            <VisualBrush.Visual>
                <TextBlock Foreground="DarkGray">...请在此处输入文本...</TextBlock>
            </VisualBrush.Visual>
        </VisualBrush>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <TextBlock Name="promptTextBlock" Grid.Row="0" Margin="10"
                   TextWrapping="WrapWithOverflow">
            请输入文本:
        </TextBlock>
        <Rectangle Fill="White" Grid.Row="1" Margin="10,0,10,0"/>
        <TextBox Name="inputTextBox" AcceptsTab="False" MaxLength="255"
                 TextWrapping="WrapWithOverflow"
                 VerticalScrollBarVisibility="Auto" Grid.Row="1"
                 TextChanged="inputTextBox_TextChanged" MinWidth="140"
                 SnapsToDevicePixels="True" Background="{StaticResource textBoxBackground}"
                 Margin="10,0,10,0" KeyDown="inputTextBox_KeyDown"/>
        <TextBlock Name="tbkToolTip" Grid.Row="2" VerticalAlignment="Center"
                   HorizontalAlignment="Left" Foreground="Red" Margin="10"></TextBlock>
        <Button Name="buttonOk" Margin="0,10,20,10" Width="60" Grid.Row="2"
                HorizontalAlignment="Right" Click="buttonOk_Click">确定(_O)</Button>
    </Grid>
</Window>

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

AI 解读 AI

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

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