?
Solved

Lines that resize with a grid

Posted on 2009-07-08
6
Medium Priority
?
1,383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

719 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