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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:51:04+00:00 2026-05-25T15:51:04+00:00

I have the following Grid . <Grid DockPanel.Dock=Bottom> <Border HorizontalAlignment=Stretch VerticalAlignment=Stretch CornerRadius=4 Background={DynamicResource {x:Static

  • 0

I have the following Grid.

 <Grid DockPanel.Dock="Bottom">
     <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CornerRadius="4" Background="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}">
         <Border.RenderTransform>
             <TranslateTransform X="2" Y="2" />
         </Border.RenderTransform>
         <Border.BitmapEffect>
             <BlurBitmapEffect Radius="4" />
         </Border.BitmapEffect>
     </Border>
     <Grid Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
         <Image Source="{Binding Image}"></Image>
     </Grid>
 </Grid>

It renders like this.

Sample

Notice the first one is horizontal while the other is vertical.

How do I tell the Border to be the same size as the inner Grid? This is so that I can match the drop shadow.

  • 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-25T15:51:05+00:00Added an answer on May 25, 2026 at 3:51 pm

    I’d try the follows:

    <Grid DockPanel.Dock="Bottom">
         <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CornerRadius="4" Background="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"
    Width="{Binding ElementName=G, Path=ActualWidth}"
    Height="{Binding ElementName=G, Path=ActualHeight}"
         >
             <Border.RenderTransform>
                 <TranslateTransform X="2" Y="2" />
             </Border.RenderTransform>
             <Border.BitmapEffect>
                 <BlurBitmapEffect Radius="4" />
             </Border.BitmapEffect>
         </Border>
         <Grid x:Name="G" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
             <Image Source="{Binding Image}"></Image>
         </Grid>
     </Grid>
    

    Cheers

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

Sidebar

Related Questions

I have following grid: <Grid x:Name=grd HorizontalAlignment=Left VerticalAlignment=Top Width=100 Height=100 > <Button x:Name=but OverridesDefaultStyle=True
I have the following grid: <Grid Background=LightGray x:Name=ProgrammPoolTextGrid> <TextBlock x:Name=tbLeft Margin=0 Text=PROGRAMMPOOL TextWrapping=NoWrap Width=100
I have the following in my XAML: <Grid x:Name=LayoutRoot Background=White> <Grid.RowDefinitions> <RowDefinition Height=20/> <RowDefinition
I have the following sample from MSDN: <Grid x:Name=LayoutRoot Background=White> <Grid.RowDefinitions> <RowDefinition Height=25 />
Why isn't my XAML following the TabOrder I specified? I currently have: <DockPanel> <Grid
Suppose I have the following (shortened for simplicity): jQuery(#grid).jqGrid({ ... ondblClickRow: function() { //
I have the following Xaml in a Window ( ArtistInfo ): <Grid> <TextBlock Text={Binding
I'm building a grid in ASP.NET MVC and I have the following issue: Above
So I have the following DataTemplate for a ListBox.ItemTemplate : <DataTemplate x:Key=Tweet> <Grid> <Grid.ColumnDefinitions>
I have the following JQ-Grid with a formatter function which returns some HTML as

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.