<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MapView: change position and size in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1003049#M9576</link>
    <description>&lt;P&gt;You would need to do in the Xaml for the view containing the MapView.&amp;nbsp; This could be done a number of ways.&lt;/P&gt;&lt;P&gt;My preferred method is to setup a Grid and put the MapView where I want it.&amp;nbsp; But I believe just adding a Margin to the view would suffice.&lt;/P&gt;&lt;P&gt;Grid:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
			 ...
             Title="{Binding Title}"&amp;gt;

    &amp;lt;Grid  WidthRequest="0"&amp;gt;
        &amp;lt;Grid.ColumnDefinitions&amp;gt;
            &amp;lt;ColumnDefinition Width="100" /&amp;gt;
            &amp;lt;ColumnDefinition Width="*" /&amp;gt;
        &amp;lt;/Grid.ColumnDefinitions&amp;gt;

		&amp;lt;!-- Could setup Rows to set away from top --&amp;gt;
        &amp;lt;Grid x:Name="MainGrid" Grid.Column="1" &amp;gt;
            &amp;lt;Grid.ColumnDefinitions&amp;gt;
                &amp;lt;ColumnDefinition Width="*" /&amp;gt;
            &amp;lt;/Grid.ColumnDefinitions&amp;gt;
            &amp;lt;Grid&amp;gt;
                &amp;lt;esri:MapView /&amp;gt;
            &amp;lt;/Grid&amp;gt;
        &amp;lt;/Grid&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/ContentPage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margin:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
			 ...
             Title="{Binding Title}"&amp;gt;
	
	&amp;lt;-- Margin="Left, Top, Right, Bottom"
	&amp;lt;esri:MapView Margin="20,20,0,0"/&amp;gt;

&amp;lt;/ContentPage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 17:53:24 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2020-11-19T17:53:24Z</dc:date>
    <item>
      <title>MapView: change position and size</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1002455#M9571</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I'am developing an iOS app with Visual Studio Xamarin, using ArcGIS runtime sdk .NET.&lt;BR /&gt;When the application starts the map occupies the entire display. I want the map to be&lt;BR /&gt;displayed starting at some distance from the top edge of the display.&lt;BR /&gt;How can this be done programmatically.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 09:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1002455#M9571</guid>
      <dc:creator>MassimoMazzanti</dc:creator>
      <dc:date>2020-11-18T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: MapView: change position and size</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1003049#M9576</link>
      <description>&lt;P&gt;You would need to do in the Xaml for the view containing the MapView.&amp;nbsp; This could be done a number of ways.&lt;/P&gt;&lt;P&gt;My preferred method is to setup a Grid and put the MapView where I want it.&amp;nbsp; But I believe just adding a Margin to the view would suffice.&lt;/P&gt;&lt;P&gt;Grid:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
			 ...
             Title="{Binding Title}"&amp;gt;

    &amp;lt;Grid  WidthRequest="0"&amp;gt;
        &amp;lt;Grid.ColumnDefinitions&amp;gt;
            &amp;lt;ColumnDefinition Width="100" /&amp;gt;
            &amp;lt;ColumnDefinition Width="*" /&amp;gt;
        &amp;lt;/Grid.ColumnDefinitions&amp;gt;

		&amp;lt;!-- Could setup Rows to set away from top --&amp;gt;
        &amp;lt;Grid x:Name="MainGrid" Grid.Column="1" &amp;gt;
            &amp;lt;Grid.ColumnDefinitions&amp;gt;
                &amp;lt;ColumnDefinition Width="*" /&amp;gt;
            &amp;lt;/Grid.ColumnDefinitions&amp;gt;
            &amp;lt;Grid&amp;gt;
                &amp;lt;esri:MapView /&amp;gt;
            &amp;lt;/Grid&amp;gt;
        &amp;lt;/Grid&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/ContentPage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margin:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
			 ...
             Title="{Binding Title}"&amp;gt;
	
	&amp;lt;-- Margin="Left, Top, Right, Bottom"
	&amp;lt;esri:MapView Margin="20,20,0,0"/&amp;gt;

&amp;lt;/ContentPage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 17:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1003049#M9576</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-11-19T17:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: MapView: change position and size</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1003123#M9580</link>
      <description>&lt;P&gt;Joe, many thanks for your reply.&lt;/P&gt;&lt;P&gt;Your solution is interesting, but I don't work with Xamarin Forms. In Xamarin iOS the layout can be built in the Main.storyboard file, but in the latest versions of Visual Studio it is indicated that the iOS Designer will be removed soon and Xcode is the best solution for designing iOS apps. I don't work with Xcode and for this reason I am looking for a solution in C# code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 20:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-change-position-and-size/m-p/1003123#M9580</guid>
      <dc:creator>MassimoMazzanti</dc:creator>
      <dc:date>2020-11-19T20:00:12Z</dc:date>
    </item>
  </channel>
</rss>

