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

  • Home
  • SEARCH
  • 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 805317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:03:52+00:00 2026-05-15T00:03:52+00:00

Whenever I set the Border.Effect property to a drop shadow effect every control contained

  • 0

Whenever I set the Border.Effect property to a drop shadow effect every control contained within the control has a drop shadow.

Is there a way to set the shadow just to the border and not every control contained in the border?

Here is a short example of my code:

<Grid>
 <Border Margin="68,67,60,67" BorderBrush="Black" BorderThickness="1" CornerRadius="10">
  <Border.Effect>
   <DropShadowEffect/>
  </Border.Effect>
  <Rectangle Fill="White" Stroke="Black" Margin="37,89,118,98" />
 </Border>
</Grid>
  • 1 1 Answer
  • 1 View
  • 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-15T00:03:52+00:00Added an answer on May 15, 2026 at 12:03 am

    Two choices:

    Option 1: Add a border element with the effect on it as a sibling of the border / rectangle element tree you have. Something like this:

    <Grid>
        <Border Margin="68,67,60,67"
                BorderBrush="Black"
                BorderThickness="1"
                CornerRadius="10">
            <Border.Effect>
                <DropShadowEffect />
            </Border.Effect>
        </Border>
        <Border Margin="68,67,60,67"
                BorderBrush="Black"
                BorderThickness="1"
                CornerRadius="10">
    
            <Rectangle Fill="White"
                       Stroke="Black"
                       Margin="37,89,118,98">
            </Rectangle>
        </Border>
    
    </Grid>
    

    Option 2: Put the rectangle as a sibling of the border element like this:

       <Grid>
        <Border Margin="68,67,60,67"
                BorderBrush="Black"
                BorderThickness="1"
                CornerRadius="10">
            <Border.Effect>
                <DropShadowEffect />
            </Border.Effect>
        </Border>
        <Rectangle Fill="White"
                   Stroke="Black"
                   Margin="37,89,118,98">
        </Rectangle>
    
    </Grid>
    

    NOTE: You will have to tweak the layout on the second solution to make the rectangle line up where you want it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Do it like this - aTextField.setText((readMethod.invoke(ob, null)).toString()); The second argument… May 16, 2026 at 2:04 pm
  • Editorial Team
    Editorial Team added an answer The main differences are the data model and the querying… May 16, 2026 at 2:04 pm
  • Editorial Team
    Editorial Team added an answer Actually found it on my own and figured I'd just… May 16, 2026 at 2:04 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am having GtkImage to which i want to set visible border like a
I have set up a website (www.autobodypartsnow.com) and the search function has gone haywire.
I have a DIV which I want to insert into my HTML content. Whenever
I am using a method that has the following signature: public static bool TryAuthenticate(string
Whenever I add an accessoryView to my UITableViewCell, it doesn't carry the background color
Currently whenever a new subdomain is created for the site, a new host header
I'm trying to set a background image of an NSView. (Actually an NSScrollView.) At
I show a popover whenever a cell in my tableview is touched, with the
I'm trying to get a button which looks exactly the same whether it is
I'm trying to use a StaticResource in a ControlTemplate for a custom object, and

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.