Bug-ID-Nummer |
BUG-000172893 |
Eingereicht | December 6, 2024 |
Zuletzt geändert | December 23, 2024 |
Gilt für | ArcGIS Pro SDK for .NET |
Gefunden in Version | 3.4 |
Betriebssystem | Windows OS |
Betriebssystemversion | 10.0 64 Bit |
Status | As Designed
Nach Überprüfung durch das Entwicklungsteam wurde festgestellt, dass dieses Verhalten wie geplant ist. Weitere Informationen finden Sie im Abschnitt "Zusätzliche Informationen".
|
Zusätzliche Informationen
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.
Workaround
Make the List by Data Sources view in the Contents pane active.
Schritte zur Reproduzierung