I have xaml that lookes like this
<ListBox>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Name}" />
<StackPanel Orientation="Vertical" x:Name="contentPanel" >
Content goes here...
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
The listbox binds to an object with a bool property called ShowContent. How do I get silverlight to hide the contentPanel if the object with ShowContent is false?