I need glasses, everything is WPF blurred

Description

blur[1] I was at Fabio Pedrosa's blog and I noticed Fabio had a post on how to do WPF blurring and it was shockingly simple.  Here is the code from his site to produce the image on the right.

<Window x:Class=“Blurred.Window1xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml>
  <Grid Margin=“10>
    <Grid>
      <TextBlock>
        Lorem ipsum dolor sit ame . . . cinia. Cras ut augue.
      </TextBlock>
      <Grid.BitmapEffect>
        <BlurBitmapEffect />
      </Grid.BitmapEffect>
    </Grid>
    <Grid Margin=“100>
      <Rectangle Fill=“BlackRadiusX=“8RadiusY=“8/>
      <TextBlock Foreground=“WhiteMargin=“5>
        Lorem ipsum dolor sit ame . . . cinia. Cras ut augue.
      </TextBlock>
    </Grid>
  </Grid>
</Window>

I suggest checking it some of the other stuff on there too.  He has a clip of every windows startup sound too!

Tag:

C4FNews

The Discussion

  • User profile image
    wcsdkteam

    And you can animate these effects.

    blogs.msdn.com/wpfsdk/archive/2007/12/12/button-animation-match-game.aspx

    good times!

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.