WPF-ImportantExample/_1初始化项目/MainWindow.xaml

44 lines
2.0 KiB
Plaintext
Raw Normal View History

2025-01-25 21:53:57 +08:00
<Window x:Class="_1初始化项目.MainWindow"
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"
mc:Ignorable="d"
2025-01-25 22:00:48 +08:00
Icon="public/logo.png" Title="_1初始化项目 P35" Height="450" Width="800">
2025-01-25 21:53:57 +08:00
<Grid Name="Grid">
<Grid.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="Red" />
<GradientStop Offset="0.50" Color="Indigo" />
<GradientStop Offset="1.00" Color="Violet" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10,10,13,10" TextWrapping="Wrap"
Grid.Row="0" Name="TextQuestion" FontFamily="Verdana" FontSize="24" Foreground="Green">
有什么问题吗
</TextBox>
<Button VerticalAlignment="Top" Name="CmdAnswer" HorizontalAlignment="Left" Margin="10,0" Width="127"
Height="23" Grid.Row="1">
<Button.Foreground>
<x:Static Member="SystemColors.DesktopBrush" />
</Button.Foreground>
<!-- <Rectangle Fill="Blue" Height="10" Width="100" /> -->
&lt; &quot; 你想问什么 &quot; &gt;
</Button>
<TextBox Grid.Row="2" Name="TextAnswer" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
Margin="10,10,13,10" FontSize="24" Foreground="Green">
回答就在这关于xaml受到一些影响[&lt;] [&gt;] " "
</TextBox>
</Grid>
</Window>