Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Repeating a design. WPF

$
0
0
Okay, so I have a list of information, and I would like to have this information to be represent with labels and a rectangle.
The labels will have numbers in, and the rectangle will contain an image (The width changes depending on the information in the list).

So I want to make a template type thing
Something like a panel, where it contains labels and a rectangle and I can do something like
for(int i = 0; i < DiskInformation.Get().Count; i++)
    template.Add(new DiskUsageTemplate(xPos,yPos, infoA, infoB, infoC));



So with that, I can draw multiple little boxes of information.
But I have absolutely no idea where to start.

Thanks,
- Oyy

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>