Lets say I have two containers:
<StackPanel>
<Label>First</Label>
</StackPanel>
<StackPanel>
<Label>Second</Label>
</StackPanel>
And I'm bound to this object:
public class Model
{
public bool ShowFirst { get; set; }
public bool ShowSecond { get; set; }
}
How would I set the binding to show and hide the respective panels?