none
Popup随内容延伸高度,怎么让它向上延伸而不是向下? RRS feed

  • 问题

  • <Popup x:Name="DeletePopup" Grid.Row="2" Grid.Column="2" VerticalAlignment="Bottom" MinHeight="100" IsLightDismissEnabled="True">
                <Border BorderBrush="Black" BorderThickness="2">
                <Grid x:Name="DeleteGrid"  Background="White" Width="280" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="10"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="10"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="10"/>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="10"/>
                    </Grid.RowDefinitions>
                    <TextBlock x:Name="DeleteTextBlock" Grid.Row="1" Grid.Column="1" Foreground="Black" FontSize="15" HorizontalAlignment="Left" TextWrapping="Wrap" />
                        <Border x:Name="DeleteBorder" Background="#FF00A5DF" Grid.Column="1" Grid.Row="2" Width="70" Height="25" HorizontalAlignment="Right"  PointerEntered="DeleteBorder_PointerEntered" PointerExited="DeleteBorder_PointerExited">
                        <TextBlock x:Name="SubmitDeleteBlock" Foreground="White" FontFamily="微软雅黑" FontSize="15" Text="删除" HorizontalAlignment="Center" VerticalAlignment="Center" PointerPressed="SubmitDeleteBlock_PointerPressed" PointerReleased="SubmitDeleteBlock_PointerReleased" />
                    </Border>
                </Grid>
                </Border>
            </Popup>

    2013年1月25日 8:19

答案