<?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: Create split view of two panes with a button in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176873#M8188</link>
    <description>&lt;P&gt;Yes, I see your confusion - presumably this sentence? "&lt;SPAN&gt;You can open many panes at the same time, and they can be grouped, tiled (horizontally or vertically), or floated."....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We will change it to "&lt;SPAN&gt;You can open many panes at the same time, and they can be grouped, tiled (horizontally or vertically), or floated - &lt;EM&gt;but only interactively&lt;/EM&gt;" for the next release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 15:44:07 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2022-05-24T15:44:07Z</dc:date>
    <item>
      <title>Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176761#M8180</link>
      <description>&lt;P&gt;I want to be able to create a button that opens up two panes split as shown in the image below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I use the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override async void OnClick()
        {
            Map map = null;
            Map schema = null;

            var mapProjectItems = Project.Current.GetItems&amp;lt;MapProjectItem&amp;gt;();
            await QueuedTask.Run(() =&amp;gt;
            {
                if (mapProjectItems.Count() &amp;gt; 0)
                {
                    var mapProjectItem = mapProjectItems.First();
                    var schemaProjectItem = mapProjectItems.Last();

                    map = mapProjectItem.GetMap();
                    ProApp.Panes.CreateMapPaneAsync(map);

                    schema = schemaProjectItem.GetMap();
                    ProApp.Panes.CreateMapPaneAsync(schema);
                }
                else
                {
                    map = MapFactory.Instance.CreateMap("Local Map", MapType.Map, MapViewingMode.Map, Basemap.Terrain);
                    schema = MapFactory.Instance.CreateMap("Schema", MapType.Map, MapViewingMode.Map, Basemap.None);
                }
            });

        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this opens two maps in two different views. How would I make it so it creates the two maps split horizontally or vertically as shown in the image?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176761#M8180</guid>
      <dc:creator>BartQuainkCGI</dc:creator>
      <dc:date>2022-05-24T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176861#M8184</link>
      <description>&lt;P&gt;there are a number of different ways to can open panes - map panes in your case -&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var mapItem = Project.Current.GetItems&amp;lt;MapProjectItem&amp;gt;().First();
//ok to call on the UI
mapItem.OpenMapPaneAsync(MapViewingMode.Map);

QueuedTask.Run(()=&amp;gt; {
 //GetMap needs the QTR but OpenViewAsync does not
mapItem.GetMap().OpenViewAsync();

//assuming u have a map - ok to call on the UI
FrameworkApplication.Panes.CreateMapPaneAsync(map);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However u cannot control their placement. However, if you open a view for a map that was previously opened (in the project in the session) then the pane will go back to the configuration it was last in&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176861#M8184</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-05-24T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176866#M8185</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could use code below to get all MapPanes:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                IEnumerable&amp;lt;IMapPane&amp;gt; mapPanes = FrameworkApplication.Panes.OfType&amp;lt;IMapPane&amp;gt;();
                foreach (var mapPane in mapPanes)
                {

                }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 May 2022 15:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176866#M8185</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-05-24T15:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176868#M8186</link>
      <description>&lt;P&gt;It seems to be possible as described here :&amp;nbsp;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#pane" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#pane&lt;/A&gt;&amp;nbsp;although it is not explained how to do this exactly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176868#M8186</guid>
      <dc:creator>BartQuainkCGI</dc:creator>
      <dc:date>2022-05-24T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176869#M8187</link>
      <description>&lt;P&gt;It does seem it's possible to control placement, as described&amp;nbsp;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#pane" target="_self"&gt;here in the #pane section&lt;/A&gt;&amp;nbsp;. Although it is not described how exactly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176869#M8187</guid>
      <dc:creator>BartQuainkCGI</dc:creator>
      <dc:date>2022-05-24T15:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176873#M8188</link>
      <description>&lt;P&gt;Yes, I see your confusion - presumably this sentence? "&lt;SPAN&gt;You can open many panes at the same time, and they can be grouped, tiled (horizontally or vertically), or floated."....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We will change it to "&lt;SPAN&gt;You can open many panes at the same time, and they can be grouped, tiled (horizontally or vertically), or floated - &lt;EM&gt;but only interactively&lt;/EM&gt;" for the next release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1176873#M8188</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-05-24T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create split view of two panes with a button</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1177138#M8192</link>
      <description>&lt;P&gt;Yes that's my confusion, the "can be grouped" part made me think it was possible to do it automatically. Too bad it's not possible then!&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 08:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-split-view-of-two-panes-with-a-button/m-p/1177138#M8192</guid>
      <dc:creator>BartQuainkCGI</dc:creator>
      <dc:date>2022-05-25T08:58:25Z</dc:date>
    </item>
  </channel>
</rss>

