4-Graphics_Animation/12-形状画刷和变换-19透明/MainWindow.xaml

30 lines
1.5 KiB
Plaintext
Raw Normal View History

<Window x:Class="_12_形状画刷和变换_19透明.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/bunny.png" Title="12-形状画刷和变换-19透明" Height="450" Width="800">
<StackPanel Margin="5">
<StackPanel.Background>
<ImageBrush ImageSource="public/bunny.png" Opacity="0.7" />
</StackPanel.Background>
<Button Foreground="White" FontSize="16" Margin="10" Padding="15 5" BorderBrush="White" Background="#60aa4030">按钮一个</Button>
<Label Margin="10" FontSize="18" FontWeight="Bold" Foreground="White">一个标签你诶荣</Label>
<TextBox Margin="10" Background="#aaaaaaaa" BorderBrush="White" Foreground="White">哈哈哈哈哈</TextBox>
<Button Margin="10" Padding="20" BorderBrush="White">
<Button.Background>
<ImageBrush ImageSource="public/003540AH4M72.jpg" Opacity="0.6" TileMode="Tile" Viewport="0,0,0.1,0.3" />
</Button.Background>
<StackPanel>
<TextBlock Foreground="#75ffff" TextAlignment="Center" FontSize="30" FontWeight="Bold"
TextWrapping="Wrap">
一段文字什么的
</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Window>