4-Graphics_Animation/12-形状画刷和变换-10彩虹文字内容/MainWindow.xaml

22 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

<Window x:Class="_12_形状画刷和变换_10彩虹文字内容.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"
Icon="public/003540AH4M72.jpg" Title="12-形状画刷和变换-10彩虹文字内容" Height="450" Width="800">
<Grid>
<TextBlock Name="TextBlockCmd" TextWrapping="Wrap" FontWeight="Bold" HorizontalAlignment="Center"
VerticalAlignment="Center" FontSize="94">
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="Yellow" Offset="0" />
<GradientStop Color="Red" Offset="0.25" />
<GradientStop Color="Blue" Offset="0.75" />
<GradientStop Color="LimeGreen" Offset="1" />
</LinearGradientBrush>
</TextBlock.Foreground>
12-形状画刷和变换-10彩虹文字内容
</TextBlock>
</Grid>
</Window>