WPF: Change the style of a ViewBox depending upon the amount of data
- by Brett Rigby
Hi there,
I have a WPF app that has a ViewBox to display the items in my collection, diplaying a 2-column grid for my results.
What I'd like to do is, depending on the number of items in my collection, change the number of columns. E.g if there are < 10 items in the list, then show them in just 1 column; If there are 10 items in my list, then…