Add Expansion Button to Stackpanel
- by scientist
I'd like to add Elements to a StackPanel (or Listbox / Listview if it would make that easier) and automatically add a Button (like "...") to indicate that there are more children than there is space for.
Consider a calendar that has appointment items in each day. If there are more appointments than as much as can be displayed a button is displayed to go to a detailed view for that day.
Can this be done automatically, or how do I calculate the positions of the stackpanel and its items.
It's for windows store development in c#.
Thanks in advance.