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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:17:01+00:00 2026-05-25T20:17:01+00:00

Basically, I’m trying to create a shadow effect on a simple Path element in

  • 0

Basically, I’m trying to create a shadow effect on a simple Path element in a user control by putting a ZIndex on the shadow element (also a Path) of 1 and a zindex on the other UI element of 2. These 2 elements are in a user control where the root is a canvas and work as expected in the user control.

I also have a containing canvas that contains 2 instances of this control, where I want the shadow element of each to appear underneath the other’s non-shadow element. Its not working and the shadow of one control are appearing on top of the others non-shadow element. If I change the parent canvas’s ZIndex index for the user control it puts both elements in the user control on top of the other user controls elements. I assume this is because the ZIndex is only relative to the containing canvas and not all canvases.

What’s the best way to go about fixing this without putting all of the UI elements on the same canvas.

  • 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-25T20:17:03+00:00Added an answer on May 25, 2026 at 8:17 pm

    I’m afraid you are going to have to find a way to assemble your paths into a single Canvas. When a Canvas is rendered it respects the Z-Index of its immediate children only. You can test this as follows:

    <Canvas x:Name="LayoutRoot" Background="White">
      <Rectangle Width="100" Height="100" Fill="Green"
                  Canvas.Left="20" Canvas.Top="20"
                  Stroke="Black"
                  Canvas.ZIndex="10"/>
      <Canvas Canvas.ZIndex="5">
        <Rectangle Width="100" Height="100" Fill="Blue"
                    Canvas.Left="30" Canvas.Top="30"
                    Stroke="Black"
                    Canvas.ZIndex="16"/>
      </Canvas>
    </Canvas>
    

    In the above example, even though the blue rectangle has a ZIndex of 16, which is greater than the ZIndex of the Green rectangle, it is rendered beneath, because it is contained within a Canvas with a ZIndex of 5. Remove the containing canvas and the blue rectangel renders above the green.

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
Basically I am trying to restart a service from a php web page. Here
Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I
Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
Basically I want to replicate the page changing effect found here, at http://timvandamme.com/ But
basically I'm trying to pass a variable that is defined in a JSON array
Basically what i'd like to do is injecting what's in HttpContext.Current.User everytime I ask
Basically I have two models: User and Godfather. The godfather table has three columns:
Basically i've a table for my users (it's nightclub website) and now i'm trying
Basically I have an anchor element, <a href='bla..'>link</a> On click, I first want to

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.