Hard shadow on top of soft shadow : BitmapEffect « Windows Presentation Foundation « C# / C Sharp






Hard shadow on top of soft shadow

Hard shadow on top of soft shadow
 


<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="SDKSample.Window1" Title="Text Shadow Samples"
  Background="FloralWhite">
  <StackPanel>

      <TextBlock FontSize="64" Text="asdf" Foreground="Yellow">
        <TextBlock.BitmapEffect>
          <BitmapEffectGroup>
            <DropShadowBitmapEffect ShadowDepth="5" Direction="330" Color="Orange"
              Opacity="0.75"
              Softness="0.50" />
            <DropShadowBitmapEffect
              ShadowDepth="2"
              Direction="330"
              Color="Red"
              Opacity="0.5"
              Softness="0.0" />
          </BitmapEffectGroup>
        </TextBlock.BitmapEffect>
      </TextBlock>


  </StackPanel>
</Window>

   
  








Related examples in the same category

1.A Beveled Button and TextBlock with BevelBitmapEffectA Beveled Button and TextBlock with BevelBitmapEffect
2.Shadow Effect and DropShadowBitmapEffectShadow Effect and DropShadowBitmapEffect
3.Embossed Effect with EmbossBitmapEffectEmbossed Effect with EmbossBitmapEffect
4.Glowing Effect with OuterGlowBitmapEffectGlowing Effect with OuterGlowBitmapEffect
5.Blur Effect with BlurBitmapEffectBlur Effect with BlurBitmapEffect
6.Create a shadow effect for displayed text.Create a shadow effect for displayed text.
7.Hard single shadowHard single shadow
8.Hard shadow on top of noisy shadowHard shadow on top of noisy shadow
9.Shadow effect by creating an outer glowShadow effect by creating an outer glow