How to draw N first elements?

Posted by noober on Stack Overflow See other posts from Stack Overflow or by noober
Published on 2010-04-08T12:33:45Z Indexed on 2010/04/08 12:43 UTC
Read the original article Hit count: 210

Filed under:

Hello all,

There is a canvas element with 10 children (polygons). There is a number in my code from 1 to 10.

I'd like to draw the first N elements from the children elements, base on my number.

It would be the best solution to do this from XAML with a minimum code-behind like this:

...
MyCanvas.N = 5;
...

© Stack Overflow or respective owner

Related posts about wpf