Solved

Lines that resize with a grid

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now