<Button Width="312" Height="104" Click="Button_Click">
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid>
<Rectangle Fill="#0096FF" Opacity="0.3"/>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Button.Template>
<Button.Content>
<TextBlock FontSize="56" FontFamily="YouSheBiaoTiHei" Text="欢迎使用" Foreground="White" Opacity="1"/>
</Button.Content>
</Button>
可以控制按钮背景色和按钮字体得透明度互不关联
标签:C#,背景色,样式,按钮,互不,wpf From: https://www.cnblogs.com/zj1848/p/17645502.html