我试图弹出一个PopUp控件,其中包含一些按钮,但不幸的是,当我运行我的应用程序时,它出现在左上角。我的意思是在(0,0)[in explain(x,y)axis]。如何在Silverlight中弹出PopUp控件
我的代码,这样做是:
<Popup x:Name="myPopup" Margin="-34,0,-31,0" Grid.Row="2" Grid.Column="1" Height="78" VerticalAlignment="center" HorizontalAlignment="center">
<Border Background="Silver" BorderThickness="2" BorderBrush="Black" Height="224" Width="371">
// Here is a grid which contains all my buttons and otherthing on popup
</Border>
</Popup>
能有人帮我在中心坡平它呢?(即使我做了HorizontalAlignment="center"
和VerticalAlignment="center"
也没有做)。
当我看到这个问题出现在我的饲料中弹出一个弹出弹出弹出我几乎扔我的弹出。相反,我打电话给我的弹出窗口让他知道。 – DavidG