3
Why can’t I line up at the center, that my popup?

Look how he looks in XAML Design

Follows my XAML:
<Popup x:Name="popup" HorizontalAlignment="Center" VerticalAlignment="Center">
    <StackPanel Background="Black" Width="456">
        <TextBlock Text="Selecione uma ação:" Name="lblInformaPopup" Margin="10,0" VerticalAlignment="Center" Style="{StaticResource PhoneTextTitle2Style}" />
        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Top">
            <Image Name="imgPhone" Source="Assets/Images/telefone.png" Width="70" Height="70" Tap="imgPhone_Tap" />
            <Image Name="imgGps" Source="Assets/Images/gps.png" Width="70" Height="70" Tap="imgGps_Tap" Margin="15,0,0,0"  />
            <Image Name="imgEmail" Source="Assets/Images/email.png" Width="70" Height="70" Margin="15,0,0,0"  />
        </StackPanel>
    </StackPanel>
</Popup>
Suggestions?
Good afternoon, see if this example helps you:
var p = new Popup();
var content = new TextBox { Text = "hello world!" };
p.Child = content;
p.VerticalOffset = (this.ActualHeight - content.ActualHeight) / 2;
p.HorizontalOffset = (this.ActualWidth - content.ActualWidth) / 2;
p.IsOpen = true;– cavalsilva
what is that
content? @cavalsilva. Why do you think he doesn’t exist: The name 'content' does not exist in the Current context– Leonardo