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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:03:59+00:00 2026-06-17T15:03:59+00:00

I have some graphical oriented Windows-Store-App application that logically composed from few layers. Each

  • 0

I have some graphical oriented Windows-Store-App application that logically composed from few layers. Each layer draw its own type of things.

For some reasons , I chose to represent each layer as a WPF canvas. So there are multiple canvases all logically share the same area. non of the canvas is nested in the other. They all on the same level in the “Document Outline” tree , under some cell of a grid object.

I would like input events to be routed only to one specific canvas but i don’t know how to order WPF to do that. All input events always get to the same canvas and that’s not the desired canvas.

I tried to manipulate the ZIndex and the IsHitTestVisible properties of the Canvases to achieve the desired result but it doesn’t seem to change something in the behavior of the app. No matter what i do , the events always get to the same specific Canvas.

I tried to put the desired canvas on-top of all other canvases and i tried to turn off the hit test for all non-desired canvases. None of these action succeeded.

How do I tell the framework to route events to a canvas of my choise?

  • 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-06-17T15:04:01+00:00Added an answer on June 17, 2026 at 3:04 pm

    Even though they are all at the same “level”, each canvas is still drawn on top of the other. The last one to get drawn is the one listed lowest in the XAML view. The one listed lowest is also the first one to have a chance at capturing input. Changing the ZIndex does change the order in which they’re drawn but I don’t believe it changes the order in which input is processed.

    You should be able to stop all of the ones you don’t want from processing input by setting their IsHitTestVisible property to false. If that didn’t work, I’m interested in knowing which events are still making it through.

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

Sidebar

Related Questions

I am working on an app and have come into some graphical problems when
I have created a windows application control in C#.net to show some objects in
i have an windows application that i have made by visual studio 2008.this application
I'm making a web application that uses Kinetic.js for some fancy graphical functions, and
I'm writing a s:ItemRenderer to render some simple graphical components in my app. Each
I'have written a simple code, that gets accelerometer&orientation meter and display some graphics based
I have a program that draws some vector graphics using System.Drawing and the Graphics
I have a simple graphics application which draws some stuff on the screen. Before,
I have some arbitrary pixel data that I want to save as a PNG.
I have done some computer graphical programming recently, and I have no experience before.

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.