手风琴控制隐藏在另一个控制背后,如何将它带到前面?

时间:2010-07-16 18:15:42

标签: wpf silverlight silverlight-4.0

如何在网格第0行中定义的折叠控制转到网格第1行中定义的另一个面板的顶部.....

<Grid x:Name="MainGrid" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <toolkit:Accordion SelectionMode="ZeroOrOne" 
                           Grid.Row="0">
            <toolkit:AccordionItem Header='Pan Window'>

                <toolkit:AccordionItem.Content>
........
        </toolkit:AccordionItem.Content>

            </toolkit:AccordionItem>
        </toolkit:Accordion>


        <Grid  x:Name="LayoutRoot" Grid.Row="1">
...........
        </Grid>

问题是我的Accordion控件打开但隐藏在LayoutRoot网格后面......

1 个答案:

答案 0 :(得分:2)

您是否尝试将Canvas.ZIndex设置为大于其下方的网格?

 <toolkit:Accordion SelectionMode="ZeroOrOne" Grid.Row="0" Canvas.ZIndex="1">