Unless you need selection you should go with the ItemsControl to achieve the expansion you can define such behaviour in the DataTemplate of the ItemsControl you'd just create a lightweight Expander. The principle is to have a ToggleButton and bind the visibility of the content to its IsChecked property.
Unless you need selection you should go with the ItemsControl, to achieve the expansion you can define such behaviour in the DataTemplate of the ItemsControl, you'd just create a lightweight Expander. The principle is to have a ToggleButton and bind the visibility of the content to its IsChecked property.
Could you tell me how can I bind visibility of the content to ToggleButton. IsPressed? – prostynick Jan 31 at 20:35 It's IsChecked, mixed that up; you can use a BooleanToVisibilityConverter to do that.
– H.B. Jan 31 at 20:36 You could just use the built-in expander control in your DataTemplate... – Dan Puzey Jan 31 at 20:40 Added example code. – H.B.Jan 31 at 20:41 Oh my, thank you very much for your time. – prostynick Jan 31 at 21:53.
I would approach this with ListBox and have ListBox. SelectionMode="Multiple" in it. On the ItemcontainerStyle you can have a Trigger on the ListBox.
IsSelected to make it expanded.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.