Your ViewModel should have a function that expands itself and calls the same function in its children public abstact class BaseItem { public List Children; public virtual void SetSelfAndChildrenExpandedState(bool inState) { // Expand Self IsExpanded = inState; // Expand Children foreach (BaseItem I in Children) { i. SetSelfAndChildrenExpandedState(inState); } } public bool IsExpanded { get; set; } } Now you just have to hook up your "expand all" action to call SetSelfAndChildrenExpandedState() with the appropriate parameter That might work for you...give it a thought.
Your ViewModel should have a function that expands itself and calls the same function in its children. Public abstact class BaseItem { public List Children; public virtual void SetSelfAndChildrenExpandedState(bool inState) { // Expand Self IsExpanded = inState; // Expand Children foreach (BaseItem I in Children) { i. SetSelfAndChildrenExpandedState(inState); } } public bool IsExpanded { get; set; } } Now you just have to hook up your "expand all" action to call SetSelfAndChildrenExpandedState() with the appropriate parameter.
That might work for you...give it a thought.
I was trying to avoid this becoming a viewmodel concern, but this approach worked great. I actually ended up inheriting from ReactiveObject and using the allPublicProperties helper. Thanks!
– Ben Straub Nov 9 at 21:07.
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.