I need some input for this and imagined that someone else had seen something like it:
I have a box, let's say a grid, where there are some bars in it. These bars could be rectangles in a ItemsControl. The grid has a fixed height and width - but the rectangles' height (and width) are set a from a collection of numbers. These numbers go from
0 to 200 - but in periods the numbers only go from 1 to 10. If I use absolute numbers, the rectangles will be tiny in height or width if the numbers are between 1 and 10 and the Grid is 200 in height and width. How do I make the size of these rectangles relative
to the tallest one? I guess I could do some calculations 'behind the scenes' in code, but is that really necessary? Is there no other way?
View Complete Post