Número de ID do Erro |
BUG-000172893 |
Enviado | December 6, 2024 |
Última Modificação | December 23, 2024 |
Aplica-se à | ArcGIS Pro SDK for .NET |
Versão encontrada | 3.4 |
Sistema Operacional | Windows OS |
Versão do Sistema Operacional | 10.0 64 Bit |
Status | As Designed
Após revisão pela equipe de desenvolvimento, foi determinado que esse comportamento é conforme projetado. Consulte a seção Informações Adicionais para obter detalhes.
|
Informações Adicionais
The "List by Data Sources" TOC view _must be active_ otherwise the returned data source member from
GetSelectedDataSourceMember() will always be _null_
Note the "Remarks" at: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic27774.html in the Pro SDK API reference for .GetSelectedDataSourceMember().
"Only one DataSourceMember can be selected at one time.
A DataSourceMember will only be selected when the TOC is in the "List By Data Sources" view mode."
In other words, the moment the TOC view context changes from List By Data Sources to something else (eg List by Drawing Order, List by Selection, etc.) then the selected "DataSourceMember" becomes null.
Solução Provisória
Make the List by Data Sources view in the Contents pane active.
Etapas para Reproduzir