Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3754992
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:37:48+00:00 2026-05-19T09:37:48+00:00

can any one tell me why /no/ outerglow effects are working on my WPF

  • 0

can any one tell me why /no/ outerglow effects are working on my WPF Window? here is an example of the code:

<Window x:Class="SocialShock_WPF_Client.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        AllowsTransparency="True" 
        WindowStyle='None' 
        Background="Transparent" 
        Loaded="Window_Loaded">
    <Grid>
        <Rectangle Margin="12" Name="rectangle1" Fill="#FFB75050">
            <Rectangle.BitmapEffect>
                <OuterGlowBitmapEffect GlowColor="Black" GlowSize="20" />
            </Rectangle.BitmapEffect>
        </Rectangle>
    </Grid>
</Window>

and the resulting image:

http://img408.imageshack.us/img408/6213/1c1761f31ce6408d948e266.png

No glow around the edge.
not only is the glow not appearing on the rectangle, but any other controls i add to the window cannot accept glows either.

EDIT: its in .Net 4.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:37:48+00:00Added an answer on May 19, 2026 at 9:37 am

    BitmapEffects are no longer supported in .NET 4.0.

    From MSDN

    Important In the .NET Framework 4 or
    later, the BitmapEffect class is
    obsolete. If you try to use the
    BitmapEffect class, you will get an
    obsolete exception. The non-obsolete
    alternative to the BitmapEffect class
    is the Effect class. In most
    situations, the Effect class is
    significantly faster.

    There isn’t a really good substitute but you can try to use a DropShadowEffect with a ShadowDepth of 0. Example

    <Rectangle Margin="12" Name="rectangle1" Fill="#FFB75050">
        <Rectangle.Effect>
            <DropShadowEffect ShadowDepth="0"
                              Color="Black"
                              Opacity="1"
                              BlurRadius="12"/>
        </Rectangle.Effect>
    </Rectangle>
    

    If I understood you comment correctly,

    Adding the effect in code behind

    DropShadowEffect dropShadowEffect = new DropShadowEffect();
    dropShadowEffect.ShadowDepth = 0;
    dropShadowEffect.Color = Colors.Black;
    dropShadowEffect.Opacity = 1;
    dropShadowEffect.BlurRadius = 12;
    rectangle1.Effect = dropShadowEffect;
    

    Modifying the effect in code behind

    DropShadowEffect dropShadowEffect = rectangle1.Effect as DropShadowEffect;
    dropShadowEffect.BlurRadius = 24;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Saw the code here . Can any one tell me what it means? Action
Can any one tell me what is the problem with the following code? I
Can any one tell me whether below 2 queries are an example of Left
can any one tell me why url rewriting not working in iis6?
Can any one tell me code of auto including @2x images if device is
can any one tell me the code to validate the date field in signup
Can any one tell or point me to code to list all the jndi
can any one tell me why the following code always return 0 . the
can any one tell me how can change this java code into objective c.is
Can any one tell me why this code doesn't work? $bodytag = str_replace(id=\, id=1\,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.