如何解决Expander的列表框无法在Silverlight中正确折叠
| 我在Silverlight中有一个扩展器列表框。它们可以很好地膨胀,但是当它们塌陷时,包含膨胀器的堆叠面板不会最小化。我在这里附上了截图。 <Grid Background=\"White\">
<StackPanel Orientation=\"Vertical\" Margin=\"5,5,5\" Grid.Column=\"0\" MinWidth=\"700\">
<controls:Expander Expanded=\"Expander_Expanded\" Name=\"expander1\" Margin=\"5,5\" Header=\"{Binding Name}\" HorizontalAlignment=\"Stretch\" FontSize=\"15\" FontFamily=\"Arial\" FontWeight=\"Black\" Height=\"Auto\" >
<StackPanel>
<ListBox Height=\"Auto\" Width=\"Auto\" ItemsSource=\"{Binding ProductStreamCollection}\" SelectionChanged=\"ListBox_SelectionChanged\" MinWidth=\"700\">
<ListBox.ItemContainerStyle>
<Style targettype=\"ListBoxItem\">
<Setter Property=\"HorizontalContentAlignment\" Value=\"Stretch\"></Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<view:StreamView/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</controls:Expander>
</StackPanel>
</Grid>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。