Using ArcGIS Pro 3.2.2, I'm a novice in C# and new to the ArcGIS Pro SDK.
I have a Dockpane that Zooms and selects a Feature layer
featLayer.SetExpanded(true);
featLayer.SetVisibility(true);
MapView.Active.ZoomToSelected();
It then Activates a second Dockpane, and its primary function is to update an attribute in the selected FL.
var UpdateFeatures = ArcGIS.Desktop.Framework.FrameworkApplication.DockPaneManager.Find("ArcGIS_Update");
UpdateFeatures.Activate();
The second Dockpane needs to accept a string value the will automatically select a record in a listbox so that user will only need to click an Update button. What is the simplest way to achieve this?
At the moment my work around is, to query the selected Feature Layer to get a value that I then search in the list box and then reposition my list box selection to the record. The user then needs to click the Update button to apply.
Note, the List Box contains the previous value (currently set on the FL) and updated value (value set from another App) that need to be applied to the selected Feature Layer.
I've tried calling a public method to the .cs of the second Dockpane; this does set a public var to the value from the first Dockpane, but once the Activate is executed, it somehow runs another instance of the Pane and clobbers the value set in the public method call.
I also tried putting a new property in the ViewModel of the DockPane
public string PermitValue { get; set; }
but I cannot access this property from the first Dockpane
Thank you in advance for any help.