laptop and a wrench

Erro

The EmbeddableControl.OpenAsync() method is called twice when a MapTool is started from the Add-in tab.

Última Publicação: May 6, 2021 ArcGIS Pro SDK for .NET
Número de ID do Erro BUG-000128026
EnviadoJanuary 17, 2020
Última ModificaçãoMay 5, 2025
Aplica-se àArcGIS Pro SDK for .NET
Versão encontrada2.4.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

'Active' Tools can be activated multiple times within their lifespan. The most obvious case is when a user clicks on the tool on the ribbon. When the tool is activated, the OpenAsync method is called on its associated embeddable control (assuming it has one) along with the OnToolActivateAsync(...) method. This is probably the expected workflow for tool add-in developers. However, a tool which is '_already active_' can still be reactivated many times, even when the user does not '_explicitly_' reactivate it by clicking on the tool on the ribbon - such as when the tool is already active and a view is being initialized (eg a new map view is being opened) usually because the user has switched views. When a user switches map views (or scene views), the active map tool will be reactivated (even though it is already active) meaning the OpenAsync method is called along with the OnToolActivateAsync(...) method. Note: In the case of a new (map or scene) view being activated, if the map tool is already the active tool, the OpenAsync method is called '_twice_' in succession, once when the new view is being initialized and once when the active view changed event fires internally. This is also true of the OnToolActivateAsync(...) method. There are likely other situations where tools get reactivated and add-in developers should code the tools and associated embeddable controls accordingly.

Etapas para Reproduzir

ID do Erro: BUG-000128026

Software:

  • ArcGIS Pro SDK for .NET

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download