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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:52:44+00:00 2026-05-28T01:52:44+00:00

I have a border defined like so: <Border x:Name=BaseBar BorderThickness=1,1,1,2 Height=29 CornerRadius=0,0,16,16 Grid.Row=2> <Border.BorderBrush>

  • 0

I have a border defined like so:

<Border x:Name="BaseBar" BorderThickness="1,1,1,2" Height="29" CornerRadius="0,0,16,16" Grid.Row="2">
<Border.BorderBrush>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF6E6E6E" Offset="0.004"/>
        <GradientStop Color="#FF1A1A1A" Offset="0.043"/>
    </LinearGradientBrush>
</Border.BorderBrush>
<Border.Background>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF313131" Offset="0"/>
        <GradientStop Color="#FF232323" Offset="1"/>
    </LinearGradientBrush>
</Border.Background>

It doesn’t fill correctly when the corners have a radius, though. Here is an image of the bottom left corner:

Border fills poorly at radius corner

You can clearly see the brighter background shining through the darker foreground. Is there a way to alleviate this?

EDIT: Additional picture, showing that it is the background shining through:

Border fills poorly at radius corner

In this case, only the white half of the background is seen, whereas the black half (while also getting through) is not really detectable.

  • 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-28T01:52:45+00:00Added an answer on May 28, 2026 at 1:52 am

    In this case, I usually nest two Borders inside each other. This only works if the inner fill color will be opaque, but yours already is so this should be fine.

    So instead of, for example (using solid colors instead of gradients to make the example easier to follow):

    <Border BorderThickness="1,1,1,2" CornerRadius="0,0,16,16"
            BorderBrush="Blue" Background="Gray">
      ...
    </Border>
    

    you could instead use:

    <Border CornerRadius="0,0,16,16" Background="Blue">
      <Border CornerRadius="0,0,15,15" Background="Gray" Margin="1,1,1,2">
        ...
      </Border>
    </Border>
    

    So the outer Border uses the “border” color as its Background, and then the inner Border sets its Margin to the “border width” and then uses the real “background” color for its Background. The effect is the same, but the semi-transparent seam is gone.

    To make it look right, you need to tweak the inner border’s CornerRadius — it’s inside the border, so it’s a slightly smaller radius than the outside corner. If the border was 1 pixel wide, then you’d want your CornerRadius to be 1 pixel smaller; but since you’ve got an uneven border, you’ll probably just want to eyeball it to see what looks right.

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

Sidebar

Related Questions

I have Border control defined like so: <Border Background=Azure Grid.Row=2> <ContentControl Width=Auto Height=Auto Regions:RegionManager.RegionName=MainContent
I have a border layout whose center panel is defined like the below. {
I have some CCS defined as following: .FW_Buttons { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius:
I have defined following in a ResourceDictionary: <DockPanel x:Key=errorDisplay LastChildFill=False> <Border Background=Red DockPanel.Dock=Top> <TextBlock
I have a border element with rounded corners containing a 3x3 grid. The corners
I would like to have fuzzy looking border around my Canvas control. Basically, I
I have a div with defined height, and overflow:scroll; . Its content is too
I have a container background defined in CSS like this; .container { background:#fff; margin-left:auto;
I have two animations defined in my silverlight app : <Storyboard x:Name=ShowControls> <DoubleAnimation Duration=0:0:0.2
I have a border layout in ExtJS, The north region contains some HTML, but

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.