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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:14:54+00:00 2026-06-08T23:14:54+00:00

I am working on a Silverlight application which displays multiple small icons on a

  • 0

I am working on a Silverlight application which displays multiple small icons on a Canvas, each icon being around 10×10 pixels in size. The icon is defined by a Path.

There is a usability issue where some icons are shaped like this, and as a result, if the user clicks in the gap, no click is registered. See the image below to see what I mean.

enter image description here

I’m wondering, is there an easy way in WPF/Silverlight to enable the “background” of a path to be clickable? Rather than wrapping it in another WPF type which will increase the burden on the renderer.

Alternatively, is there a simple fix to improve the system, say wrap the Path in a Rectangle or other geometry to make the entire area clickable?

  • 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-08T23:14:56+00:00Added an answer on June 8, 2026 at 11:14 pm

    Use a drawing brush with a drawing group, instead of a path.

    <Rectangle Name="TransparentBack"  Height="10" Width="10">
        <Rectangle.Fill>
            <DrawingBrush>
                <DrawingBrush.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="Transparent">
                            <GeometryDrawing.Geometry>
                                <RectangleGeometry>
                                    <RectangleGeometry.Rect>
                                        <Rect Height="1" Width="1"/>
                                    </RectangleGeometry.Rect>
                                </RectangleGeometry>
                            </GeometryDrawing.Geometry>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="White">
                            <GeometryDrawing.Geometry>
                                <PathGeometry>
                                    <PathFigure StartPoint="0,0">
                                        <LineSegment Point="0,1"/>
                                        <LineSegment Point="1,1"/>
                                    </PathFigure>
                                </PathGeometry>
                            </GeometryDrawing.Geometry>
                        </GeometryDrawing>
                    </DrawingGroup>
                </DrawingBrush.Drawing>
            </DrawingBrush>
        </Rectangle.Fill>
    </Rectangle>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working on a silverlight application which generates various graphs. It requires a
I'm working on web application which, among other things, needs to save small file
I am currently working on a Silverlight 4.0 Application that displays about 13.000 rows
I am working on a Silverlight application which makes an extensive use of Prism,
I have been working with a Linq query in a Silverlight application which returns
I am working in Silverlight 4.0 and have created a web application which is
I am writing silverlight 3 application which is working on network. It works like
I'm working on a windows phone 7 application which uses Silverlight. What I'm looking
I am working on a Silverlight application, and I want to bind the simple
I'm working on a silverlight application where I'm checking the url to see if

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.