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 6535757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:24:38+00:00 2026-05-25T10:24:38+00:00

How would I go about creating the drop shadow that is shown below for

  • 0

How would I go about creating the drop shadow that is shown below for a WPF button (or a Border, etc)? The drop shadow is “curved” and is thicker on the ends and thinner in the middle. I’d like to avoid using images (PNG) if possible, but if that is the best option then so be it. Is there a way to do it using gradients instead somehow?

example button

  • 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-25T10:24:38+00:00Added an answer on May 25, 2026 at 10:24 am

    I think you’ll have to edit the default Template for the Button and add a Shape that you add the DropShadowEffect to. An even better approach is to create a custom control which derives from Button that has this Template Then you could add Dependency Properties for the values that you would like to be able to configure, like ShadowDepth, BlurRadius, Angle for the Arc etc.

    Here is an example. It requires a reference to PresentationFramework.Aero.

    enter image description here

    <Style x:Key="BottomArcShadowButton" TargetType="{x:Type Button}"
           xmlns:MS_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <MS_Themes:ButtonChrome x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderDefaulted="{TemplateBinding IsDefaulted}" SnapsToDevicePixels="true">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </MS_Themes:ButtonChrome>
                        <Path Grid.ZIndex="-1"
                              Stroke="Green"
                              StrokeThickness="6"
                              Stretch="Fill"
                              Fill="Green"
                              StrokeEndLineCap="Square"
                              StrokeStartLineCap="Square"
                              Data="M0,0 L1,0 L1,1 A1,1 180 0 0 0,1 L0,0">
                            <Path.Effect>
                                <DropShadowEffect ShadowDepth="15"
                                                  Direction="270"
                                                  Color="Black"
                                                  Opacity="0.5"
                                                  BlurRadius="4"/>
                            </Path.Effect>
                        </Path>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                            <Setter Property="RenderDefaulted" TargetName="Chrome" Value="true"/>
                        </Trigger>
                        <Trigger Property="ToggleButton.IsChecked" Value="true">
                            <Setter Property="RenderPressed" TargetName="Chrome" Value="true"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I go about creating a real world form creation class that I
How would I go about creating a Google map that allows the user to
Was just wondering how I would go about creating a planar shadow from a
So I'm thinking about creating a simple component that I would be using on
How would I go about creating multiple documents when a single file is opening
how would i go about creating a many-many relationship among data objects in google
How would I go about creating a tripcode system (secure) for a message board
In relation to this stackoverflow question , how would I go about creating my
How would you guys go about creating a real-time search engine on .Net platform.
Just wondering how you would go about creating the effect as seen in the

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.