0

我有一个位于画布中的扩展器,想要向上扩展它,但是当它打开时它的切换按钮向下移动。问题是什么,这是我的代码:

  <Canvas Grid.Row="0" Panel.ZIndex="99"  Width="20" Height="20" >
            <Expander
                HorizontalAlignment="Left" 
                VerticalAlignment="Bottom"
                ExpandDirection="Up">
                <Grid>
                    <Button x:Name="btn1" Content="hhhh" Height="200" ></Button>
                </Grid>
            </Expander>
        </Canvas>
4

1 回答 1

-1

更改ExpandDirectionDown使您想要显示的内容将显示在扩展器按钮下方,而不是在其上方。

于 2012-04-28T05:27:52.647 回答