Solved

Lines that resize with a grid

Posted on 2009-07-08
6
1,377 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

710 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