top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to add more contents in PopUp control in windows phone 8?

+2 votes
381 views
How to add more contents in PopUp control in windows phone 8?
posted Feb 16, 2015 by Karthi Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

you may have a stack panel or grid as a child control and place more contents on the panel or grid controls. The following code snippet creates a stack panel and places some contents on it.

<Popup Margin="10,10,0,13" Name="Popup1" HorizontalAlignment="Left"     
     VerticalAlignment="Top" Width="194" Height="200" IsOpen="True">  
            <StackPanel>  
                <TextBlock Name="McTextBlock"   
                 Background="LightBlue" >  
                This is popup text   
               </TextBlock>  
                <Button Content="This is button on a Pupup" />  
            </StackPanel>  
    </Popup>  
answer Feb 17, 2015 by Jdk
...