Solved

Lines that resize with a grid

Posted on 2009-07-08
6
1,373 Views
Last Modified: 2013-11-19
I would like to draw lines that span rows and columns of a grid. For example, a line that goes from the centre of grid element A1 to the centre of grid element A10. They need to resize with the grid such that the line still goes from A1 to A10. Help please!
0
Comment
Question by:SINCO
  • 2
6 Comments
 

Author Comment

by:SINCO
ID: 24837915
[Just to clarify, by A1 i mean element 0,0 (or any element really) and A10 could be thought of as 0,9. I was just referring to columns as letters and rows as numbers for some random reason]
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24849816
I would think that this article describes a possibility (with Line.Stretch="Fill"):

Displaying Grid Lines
http://www.trillian.com.au/2009/01/displaying-grid-lines.html
0
 

Author Comment

by:SINCO
ID: 24857418
That's great. The important bits are to bind the columnspan property of horizontal and vertical lines to the x and y dimensions of the grid. Set stretch to fill. And, unlike the sample code, set horizontal and vertical alignment to center. Thanks.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question