小编Ric*_*xas的帖子

动态添加子扩展器

有没有办法在运行时创建像这样的xaml轰鸣声的子扩展器?

<Expander Header="Building" IsExpanded="True">
    <StackPanel>
        <Expander Header="Sales">
            <StackPanel>
                <TextBlock>6100</TextBlock>
                <TextBlock>6101</TextBlock>
                <TextBlock>6111</TextBlock>
                <TextBlock>6150</TextBlock>
            </StackPanel>
        </Expander>
        <Expander Header="Director">
            <StackPanel>
                <TextBlock>6102</TextBlock>
                <TextBlock>6113</TextBlock>
            </StackPanel>
        </Expander>
    </StackPanel>
</Expander>
Run Code Online (Sandbox Code Playgroud)

wpf dynamic expander

2
推荐指数
1
解决办法
7538
查看次数

标签 统计

dynamic ×1

expander ×1

wpf ×1