<?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: Change focus in MapTool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1339027#M10558</link>
    <description>&lt;P&gt;In your code where you determine whether the tool should be focused or not, you can just activate the tool via&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var editCommand = FrameworkApplication.GetPlugInWrapper("esri_editing_ShowEditFeaturesBtn") as ICommand;
if (editCommand != null &amp;amp;&amp;amp; editCommand.CanExecute(null))
{
	editCommand.Execute(null);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 10:28:09 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2023-10-18T10:28:09Z</dc:date>
    <item>
      <title>Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1336882#M10529</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement for the map tools which is when nothing is selected or in valid data is select due to which nothing will be shown in the map tool UI then focus should be in map. If correct data is selected which is loaded in the map tool's UI then focus should be in map tool. By focus I mean the blue line across the map tool's dockpane or embeddable control.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we achieve this?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 10:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1336882#M10529</guid>
      <dc:creator>TonyO</dc:creator>
      <dc:date>2023-10-11T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337111#M10531</link>
      <description>&lt;P&gt;i am not sure what you mean with:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"By focus I mean the blue line across the map tool's dockpane or embeddable control. "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, in essence you would have to monitor feature selection and if your data selection conditions are useable by your tool you can then switch the current tool to your tool (or enable the tool button).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 21:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337111#M10531</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-10-11T21:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337214#M10534</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;I am talking about the below blue line around the tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TonyO_0-1697106451621.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82918i3F1D0A9741BA0969/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TonyO_0-1697106451621.png" alt="TonyO_0-1697106451621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the requirement is if something is selected and tool is opened with that selected data then this blue line&amp;nbsp; around the tool should be visible. And if nothing is selected in the map then there should not be blue line around the tool. I think we can replicate this if u open the tool and u click on the tool then this line comes across the tool makes the focus on the tool and then if you will click on the map then blue line disappears from the tool and focus is now on the map.&lt;/P&gt;&lt;P&gt;But now we need to implement something like this based on selection. That's why if any selection focus should be on the tool which can be shown using blue line around the tool. If no selection then no blue line and focus should be on the map.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 15:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337214#M10534</guid>
      <dc:creator>TonyO</dc:creator>
      <dc:date>2023-10-12T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337575#M10538</link>
      <description>&lt;P&gt;Any idea? &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 01:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1337575#M10538</guid>
      <dc:creator>TonyO</dc:creator>
      <dc:date>2023-10-13T01:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1339027#M10558</link>
      <description>&lt;P&gt;In your code where you determine whether the tool should be focused or not, you can just activate the tool via&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var editCommand = FrameworkApplication.GetPlugInWrapper("esri_editing_ShowEditFeaturesBtn") as ICommand;
if (editCommand != null &amp;amp;&amp;amp; editCommand.CanExecute(null))
{
	editCommand.Execute(null);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1339027#M10558</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-10-18T10:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change focus in MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1339029#M10559</link>
      <description>&lt;P&gt;If you need to activate the map, then you need to find its pane:&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)
{
	if (isMyMapPane??)
	{
		var pane = mapPane as Pane;
		pane?.Activate();
		return;
	}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-focus-in-maptool/m-p/1339029#M10559</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-10-18T10:32:23Z</dc:date>
    </item>
  </channel>
</rss>

