newOnlineQA/Windows/AddQuestion.xaml
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="newOnlineQA.Windows.AddQuestion"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:newOnlineQA.Windows"
mc:Ignorable="d"
Title="回答" Height="500" Width="800" AllowsTransparency="True" WindowStyle="None"
ResizeMode="NoResize">
<Grid Background="#f7f7f7">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="80"/>
<RowDefinition />
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Grid Background="{DynamicResource MainColor}">
<TextBlock Text="添加问题" Margin="10 0" FontSize="16" Foreground="White" VerticalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
<Button Style="{StaticResource ButtonStyle}" Width="45" Click="BtnMinClick" Content="─" Height="30" Foreground="Wheat" BorderThickness="0" Background="Transparent" />
<Button Style="{StaticResource ButtonStyle}" Width="45" Click="BtnCloseClick" Content="✕" Height="30" Foreground="Wheat" BorderThickness="0" Background="Transparent" />
</StackPanel>
</Grid>
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="70 20 0 0">
<TextBlock Text="标题:" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" Foreground="#808080"/>
<TextBox Width="600" Margin="10 0 0 0" Name="titleBox">
<TextBox.Resources>
<VisualBrush x:Key="hinttext" TileMode="None" AlignmentX="Left" Stretch="None">
<VisualBrush.Visual>
<TextBlock Text="请输入问题标题"/>
</VisualBrush.Visual>
</VisualBrush>
</TextBox.Resources>
<TextBox.Style>
<Style TargetType="TextBox">
<Setter Property="FontSize" Value="20" />
<Setter Property="Height" Value="26" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Foreground" Value="#808080"/>
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Background" Value="{StaticResource hinttext}" />
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="70 20 0 0" VerticalAlignment="Top">
<TextBlock Text="内容:" HorizontalAlignment="Center" FontSize="22" Foreground="#808080"/>
<TextBox Width="600" Height="280" Margin="10 0 0 0" Name="contentBox" TextWrapping="Wrap"
FontSize="24" Foreground="#808080"/>
</StackPanel>
<Grid Grid.Row="3">
<TextBlock Text="分类:" Margin="70 0 0 0" VerticalAlignment="Center" FontSize="22" Foreground="#808080"/>
<ComboBox Name="categoryList" Margin="130 0 0 0" FontSize="18" Foreground="#808080" DisplayMemberPath="contents"
HorizontalAlignment="Left" Width="200" Height="30"/>
<Button Style="{StaticResource LoginOrRegisterButtonStyle}" VerticalAlignment="Center" HorizontalAlignment="Right"
Content="确认" Margin="0 0 40 0" Width="150" Height="50" Click="BtnAddClick"/>
</Grid>
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
