C# 打开ExpanderView时向下移动其他项目

C# 打开ExpanderView时向下移动其他项目,c#,windows-phone-7,silverlight-toolkit,C#,Windows Phone 7,Silverlight Toolkit,我有四个工具箱:一个页面上的ExpanderView项。我想要的是让目标浏览器下方的ExpanderViews向下移动,为我需要打开的浏览器留出空间。我该怎么做才能做到这一点呢?我记得,每个exapnder都有一个“IsExpanded”属性。只需将其设置为“真”以显示,或设置为“假”以折叠,并为其他内容提供更多空间。 可以通过数据绑定和代码隐藏 private void SetExpanded(bool expand) { foreach (object item in this.li

我有四个工具箱:一个页面上的ExpanderView项。我想要的是让目标浏览器下方的ExpanderViews向下移动,为我需要打开的浏览器留出空间。我该怎么做才能做到这一点呢?

我记得,每个exapnder都有一个“IsExpanded”属性。只需将其设置为“真”以显示,或设置为“假”以折叠,并为其他内容提供更多空间。 可以通过数据绑定和代码隐藏

private void SetExpanded(bool expand)
{
    foreach (object item in this.listBox.Items)
    {
        CustomPizza customPizza = item as CustomPizza;
        if (customPizza != null)
        {
            customPizza.IsExpanded = expand;
        }
    }
}