Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 包装纸折叠顺序_C#_Wpf_Xaml_Wrappanel - Fatal编程技术网

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变得容易,并且可以从最高级别进行控制