Add Expansion Button to Stackpanel

Posted by scientist on Stack Overflow See other posts from Stack Overflow or by scientist
Published on 2012-11-05T22:57:53Z Indexed on 2012/11/05 22:59 UTC
Read the original article Hit count: 133

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about xaml