top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Placement of a Popup in XAML?

+1 vote
364 views
What is Placement of a Popup in XAML?
posted Feb 18, 2015 by Sathish Kumar

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

1 Answer

+1 vote

The Placement property of Popup describes the placement of where a Popup control appears on the screen.

If you do not set any positioning or placement of a popup, the popup will appear in the left top corner of the window.

The PlacementMode enumeration represents the Placement property. The following code snippet sets the Placement property to AbsolutePoint.

<Popup Name="Popup1" HorizontalAlignment="Left"   
   VerticalAlignment="Top" Width="200" Height="50"   
   IsOpen="True" Placement="AbsolutePoint" >                 
             <TextBlock Name="McTextBlock"  Background="LightBlue" >  
                This is popup text   
           </TextBlock>                     
</Popup> 
answer Feb 19, 2015 by Jdk
Similar Questions
...