【发布时间】:2011-11-30 12:48:40
【问题描述】:
当我折叠扩展器时,它明显折叠,但我无法单击后面的内容。
它占用的空间与展开时相同...
真的可以折叠扩展器吗?提前致谢。
编辑:
代码示例:
<Grid>
<Button Content="CannotClick" Height="23" HorizontalAlignment="Left" Margin="314,91,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
<Expander Header="expander1" Height="190" HorizontalAlignment="Left" Margin="306,32,0,0" Name="expander1" VerticalAlignment="Top" Width="95">
<Grid>
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="7,106,0,0" Name="button2" VerticalAlignment="Top" Width="75" />
</Grid>
</Expander>
</Grid>
CannotClick 按钮位于展开器的展开区域下方。
【问题讨论】:
-
它应该崩溃。您的代码会有所帮助。
-
您的扩展器是否包含在未调整为折叠扩展器大小的元素中,例如具有固定高度的网格行?正如 Ritch Melton 所提到的,代码/xaml 示例将有助于诊断。
-
将高度设置为自动适用于该示例。 THX