C# 包装纸折叠顺序
有人知道如何设置C# 包装纸折叠顺序,c#,wpf,xaml,wrappanel,C#,Wpf,Xaml,Wrappanel,有人知道如何设置WrapPanel折叠的顺序吗(或者如果可能的话)?我想先折叠外部的WrapPanel,再折叠内部的。为了增加难度,我在扩展器内部安装了WrapPanel <WrapPanel> <Button Style="{StaticResource ExchangeButton}" /> <Expander ExpandDirection="Right" Header="Edition"
WrapPanel
折叠的顺序吗(或者如果可能的话)?我想先折叠外部的WrapPanel
,再折叠内部的。为了增加难度,我在扩展器内部安装了WrapPanel
<WrapPanel>
<Button Style="{StaticResource ExchangeButton}" />
<Expander ExpandDirection="Right" Header="Edition"
Template="{StaticResource ExpanderTemplate}">
<WrapPanel>
<Button Style="{StaticResource AddButton}" />
<Button Style="{StaticResource EditButton}" />
<Button Style="{StaticResource DeleteButton}" />
</WrapPanel>
</Expander>
</WrapPanel>
隐藏或折叠父容器将对其所有子容器执行相同的操作。还有他们的孩子
这是一件好事。从另一个方向思考这个问题……如果你的内部容器是可见的,但外部容器是隐藏的,那么即使它的状态是可见的,也无法与之交互。WPF为您解决了所有这些问题,并使创建一个显示、隐藏或折叠内容的UI变得容易,并且可以从最高级别进行控制