我无法看到折叠的Expander或Stack Panel中的内容。
如何在可视化设计器中查看其内容?
Expander在StackPanel中,StackPanel在ScrollViewer中
<Expander Header="{StaticResource CategoryTreeMetadataHeader}" IsExpanded="False"
Style="{StaticResource newExpanderStyle}" Expanded="Expander_Expanded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150px" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Margin="5,5,5,5" Text="{StaticResource Treename}"/>
<TextBox Style="{StaticResource TextBox3D}" Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" Name="TreenameTextBox"></TextBox>
<TextBlock Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Text="{StaticResource Comment}"/>
<TextBox Style="{StaticResource TextBox3D}" Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" Name="CommentTextBox" AcceptsReturn="True" TextWrapping="Wrap" MinLines="5"></TextBox>
<TextBlock Grid.Row="2" Grid.Column="0" Margin="5,5,5,5" Text="{StaticResource TypeaheadChars}"/>
<ext:IntegerUpDown Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" Width="100" Name="TypeaheadCharsTextBox" Value="3" Increment="1" Maximum="7" Minimum="1" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="3" Grid.Column="0" Margin="5,5,5,5" Name="ArchivingLabel" Text="{StaticResource ArchivingEnabled}"/>
<CheckBox Grid.Row="3" Grid.Column="1" Margin="5,5,5,5" Name="ArchivingCheckBox" IsChecked="True" Checked="ArchivingCheckBox_Checked" Unchecked="ArchivingCheckBox_Unchecked" />
<TextBlock Grid.Row="4" Grid.Column="0" Margin="5,5,5,5" Name="RetentionLabel" Text="{StaticResource RetentionEnabled}"/>
<CheckBox Grid.Row="4" Grid.Column="1" Margin="5,5,5,5" Name="RetentionCheckBox" IsChecked="True" Checked="RetentionCheckBox_Checked" Unchecked="RetentionCheckBox_Unchecked" />
</Grid>
</Expander>
答案 0 :(得分:0)
试试这个:
:
1)你有一个扩展器:
2)右键单击您的扩展器并确保选中展开扩展器
3)使扩展器变大,灰色区域为内容
对于折叠的stackPanel ,我只想编辑xaml代码
<StackPanel Height="100" Width="100" Visibility="Collapsed"/>
到
<StackPanel Height="100" Width="100" Visibility="Visible"/>
完成后,只需将“可见性”设置为“已折叠”
即可