title: How to anchor visual element in xamarin
body: <p>I am making a landing page for this application I am developing. I have done a pre-render for the background and am currently working out how to place elements above it so that it appears seamless. Currently, I have placed the first element, an entry box, approximately where I want it to be. My issue now is that I need It to remain there regardless of the screen size it may be displayed on. My intuition tells me this can be done with AnchorX and AnchorY.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    &lt;ContentPage.Content&gt;
          &lt;AbsoluteLayout&gt;
              &lt;Image AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1" Source="{local:ImageResource Untitled.Images.predrawVers2.png}" Aspect="AspectFill"&gt;&lt;/Image &gt;
              &lt;Grid AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" BackgroundColor="Transparent"&gt;
                  &lt;Grid.RowDefinitions&gt;
                      &lt;RowDefinition Height="*" /&gt;
                      &lt;RowDefinition Height="24" /&gt;
                      &lt;RowDefinition Height="50" /&gt;
                      &lt;RowDefinition Height="*" /&gt;
                      &lt;RowDefinition Height="*" /&gt;
                      &lt;RowDefinition Height="*" /&gt;
                  &lt;/Grid.RowDefinitions&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="*" /&gt;
                      &lt;ColumnDefinition Width="*" /&gt;
                      &lt;ColumnDefinition Width="*"/&gt;
                      &lt;ColumnDefinition Width="317" /&gt;
                      &lt;ColumnDefinition Width="420" /&gt;
                      &lt;ColumnDefinition Width="*" /&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
  
  
                  &lt;Entry Placeholder="System name" PlaceholderColor="Aqua" Grid.Column="4" Grid.Row="2" VerticalOptions="Fill" HorizontalOptions="Fill"&gt;&lt;/Entry&gt;
              &lt;/Grid&gt;
          &lt;/AbsoluteLayout&gt;
      &lt;/ContentPage.Content&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/P1LjA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P1LjA.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8tdkI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8tdkI.png" alt="enter image description here"></a></p>