我試圖彈出一個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