2011-06-25 31 views

回答

2

在WPF中,你可以覆盖文本普通的文本用模糊来实现的背景光晕效果。

这里的标记:

<Grid Background="CadetBlue"> 
    <Grid Margin="20"> 
     <TextBlock Text="Stack Overflow" FontSize="24" FontWeight="Bold" Foreground="AliceBlue"> 
      <TextBlock.Effect> 
       <BlurEffect Radius="30"/> 
      </TextBlock.Effect> 
     </TextBlock> 
     <TextBlock Text="Stack Overflow" FontSize="24" FontWeight="Bold" Foreground="Black"/> 
    </Grid> 
</Grid> 

,这是什么样子:

Text Glow Effect

相关问题